forked from huawei/mindspore2022
!23646 Fix MS_DEBUGGER_PARTIAL_MEM=1 issue
Merge pull request !23646 from parastooashtari/Debugger_partial_mem_bug
This commit is contained in:
commit
bbfa9d43cb
|
|
@ -607,11 +607,6 @@ GraphId AscendSession::CompileGraphImpl(NotNull<FuncGraphPtr> func_graph) {
|
|||
device::KernelAdjust::GetInstance().InsertOverflowCheckOperations(NOT_NULL(root_graph));
|
||||
// build kernel
|
||||
BuildKernel(root_graph);
|
||||
#ifdef ENABLE_DEBUGGER
|
||||
if (debugger_ && debugger_->partial_memory()) {
|
||||
debugger_->PreExecute(root_graph);
|
||||
}
|
||||
#endif
|
||||
SetSummaryNodes(root_graph.get());
|
||||
// Alloc memory for child graph's inputs
|
||||
AssignStaticMemory(NOT_NULL(root_graph), NOT_NULL(&memo));
|
||||
|
|
|
|||
Loading…
Reference in New Issue