Browse Source

clear done tasks before sync run task

pull/15837/head
huanghui 4 years ago
parent
commit
404d157f23
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