Skip to content

Commit

Permalink
【NPU】Add int dtype kernel for reshape2 op (#31864)
Browse files Browse the repository at this point in the history
* fix

* fix
  • Loading branch information
frankwhzhang authored Mar 25, 2021
1 parent 48aa922 commit 9754d0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions paddle/fluid/operators/reshape_op_npu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>);

1 comment on commit 9754d0a

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 9754d0a Mar 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍PR: #31864 Commit ID: 9754d0a contains failed CI.

Please sign in to comment.