!21668 [MSLITE][DEVELOP] fix bug of npu deconvolution

Merge pull request !21668 from yangruoqi713/master
This commit is contained in:
i-robot 2021-08-12 02:53:06 +00:00 committed by Gitee
commit 671b05e034
1 changed files with 0 additions and 8 deletions

View File

@ -108,14 +108,6 @@ int DeconvolutionNPUOp::SetNPUInputs(const std::vector<mindspore::MSTensor> &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;
}