!19828 Fix the unchanged iteration id on cpu

Merge pull request !19828 from maning202007/r1.3
This commit is contained in:
i-robot 2021-07-10 02:20:59 +00:00 committed by Gitee
commit aa7c152435
1 changed files with 5 additions and 0 deletions

View File

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