This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
clear done tasks before sync run task
pull/15837/head
huanghui
4 years ago
parent
7835f73fea
commit
404d157f23
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save