notify lockedtensor before output

This commit is contained in:
kswang 2020-10-26 16:52:47 +08:00
parent 4bbb854d3c
commit dd4c78c03d
1 changed files with 1 additions and 2 deletions

View File

@ -109,11 +109,10 @@ void RunGraphTask::Run() {
} catch (const std::exception &e) {
MsException::GetInstance().SetException();
}
NotifyOutputTensors(&outputs_);
for (auto &tensor : input_need_lock_tensors_) {
tensor->SetNeedWait(false);
}
NotifyOutputTensors(&outputs_);
ExecutorManager::Instance().OnRunGraphFinished();
}