From e0742c48b8e953e0a117330afe3a217efc579a29 Mon Sep 17 00:00:00 2001 From: PuQing Date: Fri, 11 Nov 2022 10:17:40 +0800 Subject: [PATCH] [PHI decoupling] remove #include "paddle/fluid/platform/bfloat16.h" in phi (#47831) --- paddle/phi/kernels/cpu/concat_kernel.cc | 2 +- paddle/phi/kernels/cpu/fill_grad_kernel.cc | 2 +- paddle/phi/kernels/cpu/fill_kernel.cc | 2 +- paddle/phi/kernels/funcs/math_function.cc | 2 +- paddle/phi/kernels/funcs/math_function.cu | 2 +- paddle/phi/kernels/gpu/concat_kernel.cu | 2 +- paddle/phi/kernels/gpu/fill_grad_kernel.cu | 2 +- paddle/phi/kernels/gpu/fill_kernel.cu | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/paddle/phi/kernels/cpu/concat_kernel.cc b/paddle/phi/kernels/cpu/concat_kernel.cc index a80c9db43c..625d7d7436 100644 --- a/paddle/phi/kernels/cpu/concat_kernel.cc +++ b/paddle/phi/kernels/cpu/concat_kernel.cc @@ -15,9 +15,9 @@ #include "paddle/phi/kernels/concat_kernel.h" #include "paddle/fluid/operators/strided_memcpy.h" -#include "paddle/fluid/platform/bfloat16.h" #include "paddle/fluid/platform/complex.h" #include "paddle/phi/backends/cpu/cpu_context.h" +#include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/scalar.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" diff --git a/paddle/phi/kernels/cpu/fill_grad_kernel.cc b/paddle/phi/kernels/cpu/fill_grad_kernel.cc index fda723ee2b..04cbb18e93 100644 --- a/paddle/phi/kernels/cpu/fill_grad_kernel.cc +++ b/paddle/phi/kernels/cpu/fill_grad_kernel.cc @@ -26,5 +26,5 @@ PD_REGISTER_KERNEL(fill_grad, int64_t, int, phi::dtype::float16, - paddle::platform::bfloat16, + phi::dtype::bfloat16, bool) {} diff --git a/paddle/phi/kernels/cpu/fill_kernel.cc b/paddle/phi/kernels/cpu/fill_kernel.cc index 7e8534a5fb..937e0cf3e4 100644 --- a/paddle/phi/kernels/cpu/fill_kernel.cc +++ b/paddle/phi/kernels/cpu/fill_kernel.cc @@ -26,5 +26,5 @@ PD_REGISTER_KERNEL(fill, int64_t, int, phi::dtype::float16, - paddle::platform::bfloat16, + phi::dtype::bfloat16, bool) {} diff --git a/paddle/phi/kernels/funcs/math_function.cc b/paddle/phi/kernels/funcs/math_function.cc index 8c32f8bcd6..77d8a49a7e 100644 --- a/paddle/phi/kernels/funcs/math_function.cc +++ b/paddle/phi/kernels/funcs/math_function.cc @@ -26,8 +26,8 @@ limitations under the License. */ #include #include -#include "paddle/fluid/platform/bfloat16.h" #include "paddle/phi/backends/cpu/cpu_context.h" +#include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/data_type.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/kernels/funcs/eigen/common.h" diff --git a/paddle/phi/kernels/funcs/math_function.cu b/paddle/phi/kernels/funcs/math_function.cu index decd668e3a..db4cdc57e2 100644 --- a/paddle/phi/kernels/funcs/math_function.cu +++ b/paddle/phi/kernels/funcs/math_function.cu @@ -16,8 +16,8 @@ limitations under the License. */ #include "paddle/fluid/memory/malloc.h" #include "paddle/fluid/memory/memcpy.h" -#include "paddle/fluid/platform/bfloat16.h" #include "paddle/phi/backends/gpu/gpu_context.h" +#include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/data_type.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/kernels/funcs/blas/blas.h" diff --git a/paddle/phi/kernels/gpu/concat_kernel.cu b/paddle/phi/kernels/gpu/concat_kernel.cu index 6d32205b0b..7635c94cde 100644 --- a/paddle/phi/kernels/gpu/concat_kernel.cu +++ b/paddle/phi/kernels/gpu/concat_kernel.cu @@ -15,9 +15,9 @@ #include "paddle/phi/kernels/concat_kernel.h" #include "paddle/fluid/operators/strided_memcpy.h" -#include "paddle/fluid/platform/bfloat16.h" #include "paddle/fluid/platform/complex.h" #include "paddle/phi/backends/gpu/gpu_context.h" +#include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/scalar.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" diff --git a/paddle/phi/kernels/gpu/fill_grad_kernel.cu b/paddle/phi/kernels/gpu/fill_grad_kernel.cu index 512aef8c1c..be1cb3fe22 100644 --- a/paddle/phi/kernels/gpu/fill_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/fill_grad_kernel.cu @@ -27,5 +27,5 @@ PD_REGISTER_KERNEL(fill_grad, int64_t, int, phi::dtype::float16, - paddle::platform::bfloat16, + phi::dtype::bfloat16, bool) {} diff --git a/paddle/phi/kernels/gpu/fill_kernel.cu b/paddle/phi/kernels/gpu/fill_kernel.cu index de46e67878..9d17f8af71 100644 --- a/paddle/phi/kernels/gpu/fill_kernel.cu +++ b/paddle/phi/kernels/gpu/fill_kernel.cu @@ -27,5 +27,5 @@ PD_REGISTER_KERNEL(fill, int64_t, int, phi::dtype::float16, - paddle::platform::bfloat16, + phi::dtype::bfloat16, bool) {} -- GitLab