Browse Source

!7701 Fix non-termination of training when MI is disconnected

Merge pull request !7701 from Harshvardhan Gupta/fix-non-termination
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
6d89f2df8f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      mindspore/ccsrc/debug/debugger/debugger.cc

+ 5
- 3
mindspore/ccsrc/debug/debugger/debugger.cc View File

@@ -430,10 +430,12 @@ void Debugger::CommandLoop() {
MS_LOG(ERROR) << "Failed to connect to MindInsight debugger server. Please check the config "
"of debugger host and port.";
Exit();
run = true;
} else {
MS_LOG(ERROR) << "Number of consecutive WaitForCommand fail:" << num_wait_fail << "; Retry after "
<< num_wait_fail << "s";
std::this_thread::sleep_for(std::chrono::milliseconds(1000 * num_wait_fail));
}
MS_LOG(ERROR) << "Number of consecutive WaitForCommand fail:" << num_wait_fail << "; Retry after "
<< num_wait_fail << "s";
std::this_thread::sleep_for(std::chrono::milliseconds(1000 * num_wait_fail));
continue;
}



Loading…
Cancel
Save