未验证 提交 a7d306af 编写于 作者: Y Yuang Liu 提交者: GitHub

add bf16 for numel (#48121)

上级 9918bf9c
...@@ -27,6 +27,7 @@ PD_REGISTER_KERNEL(size, ...@@ -27,6 +27,7 @@ PD_REGISTER_KERNEL(size,
int, int,
int64_t, int64_t,
phi::dtype::float16, phi::dtype::float16,
phi::dtype::bfloat16,
float, float,
double, double,
bool) {} bool) {}
...@@ -26,6 +26,7 @@ PD_REGISTER_KERNEL(size, ...@@ -26,6 +26,7 @@ PD_REGISTER_KERNEL(size,
int, int,
int64_t, int64_t,
phi::dtype::float16, phi::dtype::float16,
phi::dtype::bfloat16,
float, float,
double, double,
bool) {} bool) {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册