diff --git a/mindspore/lite/tools/benchmark/benchmark.h b/mindspore/lite/tools/benchmark/benchmark.h index 3886bd42cd..1cf533d42c 100644 --- a/mindspore/lite/tools/benchmark/benchmark.h +++ b/mindspore/lite/tools/benchmark/benchmark.h @@ -228,7 +228,7 @@ class MS_API Benchmark { private: BenchmarkFlags *flags_; - session::LiteSession *session_; + session::LiteSession *session_{nullptr}; std::vector ms_inputs_; std::unordered_map> ms_outputs_; std::unordered_map benchmark_data_;