fix multigraph terminate issue

This commit is contained in:
maning202007 2021-06-28 16:54:54 +08:00
parent 19e2e063c9
commit 94708a9c1d
1 changed files with 4 additions and 1 deletions

View File

@ -249,7 +249,10 @@ void Executor::OnEvent(const ExecutorEvent &event) {
}
void Executor::OnClear() {
WorkerJoin();
{
mindspore::ScopedLongRunning long_running;
WorkerJoin();
}
ClearDoneTasks();
}