From f2b07e20debe68ee70ed11ba5ae431061da922ff Mon Sep 17 00:00:00 2001 From: yangruoqi713 Date: Wed, 11 Aug 2021 16:49:57 +0800 Subject: [PATCH] [MSLITE][DEVELOP] fix bug of npu deconvolution --- mindspore/lite/src/delegate/npu/op/deconvolution_npu.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mindspore/lite/src/delegate/npu/op/deconvolution_npu.cc b/mindspore/lite/src/delegate/npu/op/deconvolution_npu.cc index a07fe461955..32beb1aa91c 100644 --- a/mindspore/lite/src/delegate/npu/op/deconvolution_npu.cc +++ b/mindspore/lite/src/delegate/npu/op/deconvolution_npu.cc @@ -108,14 +108,6 @@ int DeconvolutionNPUOp::SetNPUInputs(const std::vector &in_ deconv_->set_input_bias(*bias_); } deconv_->set_input_x(*npu_inputs[0]); - - if (act_type_ != schema::ActivationType_NO_ACTIVATION) { - ret = SetActivation(deconv_, act_type_); - if (ret != RET_OK) { - MS_LOG(ERROR) << "New activation npu operator for op " << name_ << " failed."; - return RET_ERROR; - } - } return RET_OK; }