!23895 [MS][LITE][develop] fix code review
Merge pull request !23895 from sunsuodong/code_review
This commit is contained in:
commit
9738bd115a
|
@ -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
|
||||
|
|
|
@ -122,5 +122,4 @@ int ConvolutionDepthwiseFp16CPUKernel::Run() {
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace mindspore::kernel
|
||||
|
|
|
@ -195,5 +195,4 @@ void ConvolutionDepthwiseSWFp16CPUKernel::FreePackedInputOutput() {
|
|||
packed_output_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mindspore::kernel
|
||||
|
|
|
@ -189,5 +189,4 @@ int ConvolutionFP16CPUKernel::Run() {
|
|||
FreeTmpBuffer();
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace mindspore::kernel
|
||||
|
|
|
@ -249,5 +249,4 @@ int ConvolutionWinogradFP16CPUKernel::Run() {
|
|||
FreeTmpBuffer();
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace mindspore::kernel
|
||||
|
|
Loading…
Reference in New Issue