提交 61dccb06 编写于 作者: P phlrain

fix cpu bf16 bug; test=develop

上级 95c71a51
......@@ -197,7 +197,7 @@ PD_REGISTER_KERNEL(embedding_grad,
phi::EmbeddingGradKernel,
float,
double,
phi::dtype::float16) {}
phi::dtype::bfloat16) {}
PD_REGISTER_KERNEL(embedding_sparse_grad,
CPU,
......@@ -205,4 +205,4 @@ PD_REGISTER_KERNEL(embedding_sparse_grad,
phi::EmbeddingSparseGradKernel,
float,
double,
phi::dtype::float16) {}
phi::dtype::bfloat16) {}
......@@ -105,4 +105,4 @@ PD_REGISTER_KERNEL(embedding,
phi::EmbeddingKernel,
float,
double,
phi::dtype::float16) {}
phi::dtype::bfloat16) {}
......@@ -197,7 +197,7 @@ PD_REGISTER_KERNEL(sparse_weight_embedding_grad,
phi::SparseWeightEmbeddingGradKernel,
float,
double,
phi::dtype::float16) {}
phi::dtype::bfloat16) {}
PD_REGISTER_KERNEL(sparse_weight_embedding_sparse_grad,
CPU,
......@@ -205,4 +205,4 @@ PD_REGISTER_KERNEL(sparse_weight_embedding_sparse_grad,
phi::SparseWeightEmbeddingSparseGradKernel,
float,
double,
phi::dtype::float16) {}
phi::dtype::bfloat16) {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册