From 9754d0a7cbe89661b91022d732376e160ab062f2 Mon Sep 17 00:00:00 2001 From: zhang wenhui Date: Thu, 25 Mar 2021 14:34:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90NPU=E3=80=91Add=20int=20dtype=20kernel?= =?UTF-8?q?=20for=20reshape2=20op=20(#31864)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix * fix --- paddle/fluid/operators/reshape_op_npu.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paddle/fluid/operators/reshape_op_npu.cc b/paddle/fluid/operators/reshape_op_npu.cc index cd0f0bb255..79a4cd116f 100644 --- a/paddle/fluid/operators/reshape_op_npu.cc +++ b/paddle/fluid/operators/reshape_op_npu.cc @@ -67,10 +67,20 @@ namespace ops = paddle::operators; REGISTER_OP_NPU_KERNEL( reshape2, ops::Reshape2NPUKernel, + ops::Reshape2NPUKernel, + ops::Reshape2NPUKernel, + ops::Reshape2NPUKernel, + ops::Reshape2NPUKernel, + ops::Reshape2NPUKernel, ops::Reshape2NPUKernel); REGISTER_OP_NPU_KERNEL( reshape2_grad, ops::Reshape2GradNPUKernel, + ops::Reshape2GradNPUKernel, + ops::Reshape2GradNPUKernel, + ops::Reshape2GradNPUKernel, + ops::Reshape2GradNPUKernel, + ops::Reshape2GradNPUKernel, ops::Reshape2GradNPUKernel); -- GitLab