diff --git a/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.cc b/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.cc index c23c2901927..971b878b9e2 100644 --- a/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.cc +++ b/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.cc @@ -401,7 +401,7 @@ inline void ResizeBicubicGrad(const float *input_grad, ResizerGradState &resizer } template -uint32_t DoCompute(CpuKernelContext &ctx) { +uint32_t ResizeBicubicGradCpuKernel::DoCompute(CpuKernelContext &ctx) { auto input0_addr = reinterpret_cast(ctx.Input(0)->GetData()); auto output_addr = reinterpret_cast(ctx.Output(0)->GetData()); diff --git a/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.h b/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.h index b681bd25505..2835a805254 100644 --- a/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.h +++ b/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/resize_bicubic_grad.h @@ -22,10 +22,6 @@ #include "cpu_ops_kernel.h" namespace aicpu { - -template -uint32_t DoCompute(CpuKernelContext &ctx); - class ResizeBicubicGradCpuKernel : public CpuKernel { public: ~ResizeBicubicGradCpuKernel() = default; @@ -33,6 +29,8 @@ class ResizeBicubicGradCpuKernel : public CpuKernel { private: uint32_t GetInputAndCheck(CpuKernelContext &ctx); + template + uint32_t DoCompute(CpuKernelContext &ctx); }; } // namespace aicpu #endif