diff --git a/mindspore/ccsrc/debug/debugger/debugger.cc b/mindspore/ccsrc/debug/debugger/debugger.cc index b56af88ba7..9ee6c102f6 100644 --- a/mindspore/ccsrc/debug/debugger/debugger.cc +++ b/mindspore/ccsrc/debug/debugger/debugger.cc @@ -288,6 +288,8 @@ void Debugger::Reset() { last_overflow_bin_ = 0; overflow_bin_path_.clear(); stream_task_to_opname_.clear(); + graph_proto_list_.clear(); + graph_ptr_list_.clear(); } void Debugger::PreExecute(const KernelGraphPtr &graph_ptr, uint32_t graph_sum) { diff --git a/mindspore/ccsrc/pipeline/jit/pipeline.cc b/mindspore/ccsrc/pipeline/jit/pipeline.cc index 94bc7f8190..28afadb22c 100644 --- a/mindspore/ccsrc/pipeline/jit/pipeline.cc +++ b/mindspore/ccsrc/pipeline/jit/pipeline.cc @@ -1226,6 +1226,9 @@ void ClearResAtexit() { device::KernelRuntimeManager::Instance().ClearRuntimeResource(); ReleaseGeTsd(); parse::python_adapter::ResetPythonScope(); +#ifdef ENABLE_DEBUGGER + Debugger::GetInstance()->Reset(); +#endif } } // namespace pipeline } // namespace mindspore