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

fix cpu bf16 bug; test=develop

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