diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h index dcfb82e8ca4..aa462d98fde 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h @@ -51,14 +51,14 @@ class L2NormCPUKernel : public LiteKernel { int Run() override; protected: - L2NormParameter *l2_norm_param_; + L2NormParameter *l2_norm_param_ = nullptr; private: int MallocTmpBuffer(); void FreeTmpBuffer(); - float sqrt_sum_; - float *input_ptr_; - float *output_ptr_; + float sqrt_sum_ = 0; + float *input_ptr_ = nullptr; + float *output_ptr_ = nullptr; float *tmp_sum_ = nullptr; }; } // namespace mindspore::kernel