未验证 提交 9754d0a7 编写于 作者: Z zhang wenhui 提交者: GitHub

【NPU】Add int dtype kernel for reshape2 op (#31864)

* fix

* fix
上级 48aa9223
......@@ -67,10 +67,20 @@ namespace ops = paddle::operators;
REGISTER_OP_NPU_KERNEL(
reshape2, ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext, float>,
ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext, int>,
ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext, int64_t>,
ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext, bool>,
ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext, double>,
ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext, uint8_t>,
ops::Reshape2NPUKernel<paddle::platform::NPUDeviceContext,
paddle::platform::float16>);
REGISTER_OP_NPU_KERNEL(
reshape2_grad,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext, float>,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext, int>,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext, int64_t>,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext, bool>,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext, double>,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext, uint8_t>,
ops::Reshape2GradNPUKernel<paddle::platform::NPUDeviceContext,
paddle::platform::float16>);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册