From 94708a9c1dc2e286de0be6f033645fd011f79d5c Mon Sep 17 00:00:00 2001 From: maning202007 Date: Mon, 28 Jun 2021 16:54:54 +0800 Subject: [PATCH] fix multigraph terminate issue --- mindspore/ccsrc/backend/session/executor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mindspore/ccsrc/backend/session/executor.cc b/mindspore/ccsrc/backend/session/executor.cc index 64d2f33b2d3..4bea59edb9d 100644 --- a/mindspore/ccsrc/backend/session/executor.cc +++ b/mindspore/ccsrc/backend/session/executor.cc @@ -249,7 +249,10 @@ void Executor::OnEvent(const ExecutorEvent &event) { } void Executor::OnClear() { - WorkerJoin(); + { + mindspore::ScopedLongRunning long_running; + WorkerJoin(); + } ClearDoneTasks(); }