!23895 [MS][LITE][develop] fix code review

Merge pull request !23895 from sunsuodong/code_review
This commit is contained in:
i-robot 2021-09-22 11:34:20 +00:00 committed by Gitee
commit 9738bd115a
5 changed files with 2 additions and 7 deletions

View File

@ -94,7 +94,7 @@ int Convolution1x1FP16CPUKernel::MallocWeightBiasData() {
return RET_ERROR;
}
}
memset(reinterpret_cast<char *>(packed_weight_), 0, size);
memset(packed_weight_, 0, size);
}
if (in_tensors_.size() == kInputSize2) {
@ -106,7 +106,7 @@ int Convolution1x1FP16CPUKernel::MallocWeightBiasData() {
return RET_ERROR;
}
}
memset(reinterpret_cast<char *>(bias_data_), 0, size);
memset(bias_data_, 0, size);
}
return RET_OK;
}
@ -330,5 +330,4 @@ int Convolution1x1FP16CPUKernel::Run() {
pack_input_ = nullptr;
return RET_OK;
}
} // namespace mindspore::kernel

View File

@ -122,5 +122,4 @@ int ConvolutionDepthwiseFp16CPUKernel::Run() {
}
return ret;
}
} // namespace mindspore::kernel

View File

@ -195,5 +195,4 @@ void ConvolutionDepthwiseSWFp16CPUKernel::FreePackedInputOutput() {
packed_output_ = nullptr;
}
}
} // namespace mindspore::kernel

View File

@ -189,5 +189,4 @@ int ConvolutionFP16CPUKernel::Run() {
FreeTmpBuffer();
return ret;
}
} // namespace mindspore::kernel

View File

@ -249,5 +249,4 @@ int ConvolutionWinogradFP16CPUKernel::Run() {
FreeTmpBuffer();
return ret;
}
} // namespace mindspore::kernel