Browse Source

!11000 reset exception listener

From: @kisnwang
Reviewed-by: @chujinjin,@wuxuejian
Signed-off-by: @wuxuejian
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
2145757ced
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      mindspore/ccsrc/backend/session/executor.cc
  2. +1
    -0
      mindspore/core/ir/tensor.h

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

@@ -292,6 +292,7 @@ void Executor::RunTask(const std::shared_ptr<Task> &task, bool sync) {
return finished;
});
}
ClearDoneTasks();
MsException::Instance().CheckException();
}



+ 1
- 0
mindspore/core/ir/tensor.h View File

@@ -89,6 +89,7 @@ class WaitEvent : public ExceptionListener {
}
MsException::Instance().SetExceptionListener(const_cast<WaitEvent *>(this));
cond_var_.wait(lock, [this] { return !need_wait_; });
MsException::Instance().SetExceptionListener(nullptr);
MsException::Instance().CheckException();
}



Loading…
Cancel
Save