diff --git a/paddle/phi/kernels/cpu/size_kernel.cc b/paddle/phi/kernels/cpu/size_kernel.cc index 4019976ecec9c61014d9f508367be7ed93c08327..a070c2de5bc4473a9e61063b41583fd7e4bffbad 100644 --- a/paddle/phi/kernels/cpu/size_kernel.cc +++ b/paddle/phi/kernels/cpu/size_kernel.cc @@ -27,6 +27,7 @@ PD_REGISTER_KERNEL(size, int, int64_t, phi::dtype::float16, + phi::dtype::bfloat16, float, double, bool) {} diff --git a/paddle/phi/kernels/gpu/size_kernel.cu b/paddle/phi/kernels/gpu/size_kernel.cu index fb6acd5599a8e5c9b81923c73dc045f0dc1a6f90..a165e6c82df96b7aef7609e0b8f62d9111ca63b1 100644 --- a/paddle/phi/kernels/gpu/size_kernel.cu +++ b/paddle/phi/kernels/gpu/size_kernel.cu @@ -26,6 +26,7 @@ PD_REGISTER_KERNEL(size, int, int64_t, phi::dtype::float16, + phi::dtype::bfloat16, float, double, bool) {}