未验证 提交 e0742c48 编写于 作者: P PuQing 提交者: GitHub

[PHI decoupling] remove #include "paddle/fluid/platform/bfloat16.h" in phi (#47831)

上级 a38fc5e1
......@@ -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"
......
......@@ -26,5 +26,5 @@ PD_REGISTER_KERNEL(fill_grad,
int64_t,
int,
phi::dtype::float16,
paddle::platform::bfloat16,
phi::dtype::bfloat16,
bool) {}
......@@ -26,5 +26,5 @@ PD_REGISTER_KERNEL(fill,
int64_t,
int,
phi::dtype::float16,
paddle::platform::bfloat16,
phi::dtype::bfloat16,
bool) {}
......@@ -26,8 +26,8 @@ limitations under the License. */
#include <utility>
#include <vector>
#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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -27,5 +27,5 @@ PD_REGISTER_KERNEL(fill_grad,
int64_t,
int,
phi::dtype::float16,
paddle::platform::bfloat16,
phi::dtype::bfloat16,
bool) {}
......@@ -27,5 +27,5 @@ PD_REGISTER_KERNEL(fill,
int64_t,
int,
phi::dtype::float16,
paddle::platform::bfloat16,
phi::dtype::bfloat16,
bool) {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册