Browse Source

release resources debugger fix

pull/15551/head
Islam Amin 4 years ago
parent
commit
2b20166d23
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      mindspore/ccsrc/debug/debugger/debugger.cc
  2. +3
    -0
      mindspore/ccsrc/pipeline/jit/pipeline.cc

+ 2
- 0
mindspore/ccsrc/debug/debugger/debugger.cc View File

@@ -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) {


+ 3
- 0
mindspore/ccsrc/pipeline/jit/pipeline.cc View File

@@ -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

Loading…
Cancel
Save