diff --git a/mindspore/lite/src/runtime/kernel/arm/fp16/convolution_delegate_fp16.cc b/mindspore/lite/src/runtime/kernel/arm/fp16/convolution_delegate_fp16.cc index 2f0c2c69b5..fa23d922af 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp16/convolution_delegate_fp16.cc +++ b/mindspore/lite/src/runtime/kernel/arm/fp16/convolution_delegate_fp16.cc @@ -112,7 +112,7 @@ kernel::LiteKernel *CpuConvDwFp16KernelCreator(const std::vector TypeId origin_weight_data_type, TypeId origin_bias_data_type) { MS_ASSERT(opParameter != nullptr); auto conv_param = reinterpret_cast(opParameter); - kernel::LiteKernel *kernel; + kernel::LiteKernel *kernel = nullptr; if (conv_param->input_channel_ < 32) { kernel = new (std::nothrow) kernel::ConvolutionDepthwiseSWFp16CPUKernel( opParameter, inputs, outputs, ctx, origin_weight, origin_bias, origin_weight_data_type, origin_bias_data_type);