forked from mindspore-Ecosystem/mindspore
Fix the unchanged iteration id on cpu
This commit is contained in:
parent
3a408218ec
commit
97005570a3
|
@ -442,6 +442,11 @@ void Debugger::DumpInGraphCompiler(const KernelGraphPtr &kernel_graph) {
|
|||
}
|
||||
|
||||
void Debugger::PostExecuteGraphDebugger() {
|
||||
// On CPU, update dump iteration, Parameters and consts are not dumped here
|
||||
if (device_target_ == kCPUDevice) {
|
||||
DumpJsonParser::GetInstance().UpdateDumpIter();
|
||||
return;
|
||||
}
|
||||
// Only GPU is supported for MindRTBackend
|
||||
if (device_target_ != kGPUDevice) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue