forked from mindspore-Ecosystem/mindspore
notify lockedtensor before output
This commit is contained in:
parent
4bbb854d3c
commit
dd4c78c03d
|
@ -109,11 +109,10 @@ void RunGraphTask::Run() {
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
MsException::GetInstance().SetException();
|
MsException::GetInstance().SetException();
|
||||||
}
|
}
|
||||||
|
|
||||||
NotifyOutputTensors(&outputs_);
|
|
||||||
for (auto &tensor : input_need_lock_tensors_) {
|
for (auto &tensor : input_need_lock_tensors_) {
|
||||||
tensor->SetNeedWait(false);
|
tensor->SetNeedWait(false);
|
||||||
}
|
}
|
||||||
|
NotifyOutputTensors(&outputs_);
|
||||||
ExecutorManager::Instance().OnRunGraphFinished();
|
ExecutorManager::Instance().OnRunGraphFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue