Browse Source

!15837 Clear done tasks before sync run task

From: @irmo
Reviewed-by: @kisnwang,@jjfeing
Signed-off-by: @jjfeing
pull/15837/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
abc6a83fca
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mindspore/ccsrc/backend/session/executor.cc

+ 3
- 0
mindspore/ccsrc/backend/session/executor.cc View File

@@ -279,6 +279,9 @@ void Executor::ClearDoneTasks() {
}

void Executor::RunTask(const std::shared_ptr<Task> &task, bool sync, bool long_run) {
if (sync) {
ClearDoneTasks();
}
{
std::lock_guard<std::mutex> lock(task_mutex_);
sync_run_task_finished_ = false;


Loading…
Cancel
Save