Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion paddle/phi/kernels/funcs/adam_functors.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

namespace phi {
namespace funcs {
using float16 = dtype::float16;

#ifdef PADDLE_WITH_XPU

Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/kernels/funcs/blas/blas_impl.cu.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ struct CUBlas<double> {

template <>
struct CUBlas<phi::float16> {
using float16 = phi::float16;

static void GEMM(cublasHandle_t handle,
cublasOperation_t transa,
cublasOperation_t transb,
Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/kernels/funcs/blas/blas_impl.hip.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ struct CUBlas<double> {

template <>
struct CUBlas<phi::float16> {
using float16 = phi::float16;

static void GEMM(rocblas_handle handle,
rocblas_operation transa,
rocblas_operation transb,
Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/kernels/funcs/fc_functor.cu
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ limitations under the License. */
namespace phi {
namespace funcs {

using float16 = phi::float16;

template <typename T>
struct FcTypeTraits;

Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/kernels/funcs/math_function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ limitations under the License. */

namespace phi::funcs {

using float16 = phi::float16;

template struct SetConstant<CPUContext, phi::float8_e4m3fn>;
template struct SetConstant<CPUContext, phi::float8_e5m2>;
template struct SetConstant<CPUContext, phi::float16>;
Expand Down
3 changes: 0 additions & 3 deletions paddle/phi/kernels/funcs/math_function.cu
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ void BatchTranspose(T* output,
output, input, batch, m, n, swizzle);
}

using float16 = phi::float16;
using bfloat16 = phi::bfloat16;

template void BatchTranspose(float16* output,
const float16* input,
int64_t batch,
Expand Down
1 change: 0 additions & 1 deletion paddle/phi/kernels/funcs/segment_pooling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ class SegmentPoolGradFunctor<CPUContext, T, IndexT> {
};

using CPU = CPUContext;
using float16 = phi::float16;
template class SegmentPoolFunctor<CPU, float, int>;
template class SegmentPoolFunctor<CPU, float, int64_t>;
template class SegmentPoolFunctor<CPU, double, int>;
Expand Down
1 change: 0 additions & 1 deletion paddle/phi/kernels/funcs/segment_pooling.cu
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ class SegmentPoolGradFunctor<GPUContext, T, IndexT> {
};

using GPU = GPUContext;
using float16 = phi::float16;
template class SegmentPoolFunctor<GPU, float, int>;
template class SegmentPoolFunctor<GPU, float, int64_t>;
template class SegmentPoolFunctor<GPU, double, int>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
namespace phi {
namespace fusion {

using float16 = phi::float16;

template <typename T>
static __device__ __forceinline__ T Relu(T x) {
return static_cast<T>(fmaxf(0.f, x));
Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/kernels/fusion/gpu/fused_multi_transformer_op.cu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ namespace fusion {

namespace { // NOLINT

using float16 = phi::float16;

#define MMHA_USE_FP32_ACUM_FOR_LOGITS
#define MMHA_USE_FP32_ACUM_FOR_OUT
#define MMHA_USE_FP32_ACUM_FOR_FMA
Expand Down
Loading