!30442 [MS][LITE][1.6]fix fp16 weight model inference error
Merge pull request !30442 from XianglongZeng/r1.6
This commit is contained in:
commit
1ee57386ba
|
@ -71,6 +71,7 @@ int DeconvolutionDepthwiseCPUKernel::Prepare() {
|
|||
CHECK_LESS_RETURN(in_tensors_.size(), C2NUM);
|
||||
CHECK_LESS_RETURN(out_tensors_.size(), 1);
|
||||
CHECK_NULL_RETURN(conv_param_);
|
||||
UpdateOriginWeightAndBias();
|
||||
|
||||
sliding_ = new (std::nothrow) SlidingWindowParam;
|
||||
if (sliding_ == nullptr) {
|
||||
|
|
|
@ -167,6 +167,8 @@ int DeConvolutionCPUKernel::Prepare() {
|
|||
CHECK_NULL_RETURN(conv_param_);
|
||||
CHECK_NULL_RETURN(in_tensors_.at(kInputIndex));
|
||||
CHECK_NULL_RETURN(in_tensors_.at(kWeightIndex));
|
||||
// There could be weight dataType casting before Prepare, thus weight update is required.
|
||||
UpdateOriginWeightAndBias();
|
||||
|
||||
#if defined(ENABLE_ARM32) || defined(ENABLE_AVX) || defined(ENABLE_SSE)
|
||||
row_tile_ = C4NUM;
|
||||
|
|
|
@ -378,6 +378,7 @@ int DeConvolutionWinogradCPUKernel::Prepare() {
|
|||
CHECK_NULL_RETURN(in_tensors_.at(kWeightIndex));
|
||||
CHECK_NULL_RETURN(out_tensors_.at(kOutputIndex));
|
||||
CHECK_NULL_RETURN(conv_param_);
|
||||
UpdateOriginWeightAndBias();
|
||||
|
||||
deconv_param_ = new (std::nothrow) DeConvParam();
|
||||
if (deconv_param_ == nullptr) {
|
||||
|
|
Loading…
Reference in New Issue