未验证 提交 78eb2d87 编写于 作者: S seemingwang 提交者: GitHub

support int8 for embedding (#50413)

上级 abad724e
...@@ -115,4 +115,5 @@ PD_REGISTER_KERNEL(embedding, ...@@ -115,4 +115,5 @@ PD_REGISTER_KERNEL(embedding,
phi::EmbeddingKernel, phi::EmbeddingKernel,
float, float,
double, double,
int8_t,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -134,5 +134,6 @@ PD_REGISTER_KERNEL(embedding, ...@@ -134,5 +134,6 @@ PD_REGISTER_KERNEL(embedding,
phi::EmbeddingKernel, phi::EmbeddingKernel,
float, float,
double, double,
int8_t,
phi::dtype::float16, phi::dtype::float16,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册