提交 7bff02b2 编写于 作者: Y Yu Yang

Change to pending op

上级 866f6f1b
......@@ -703,7 +703,7 @@ void ParallelExecutor::Run(const std::vector<std::string> &fetch_tensors,
RunOp(pending_vars, op);
}
while (!pending_vars.empty()) {
while (!pending_ops.empty()) {
VarHandleBase *ready_var = nullptr;
for (auto &pair : pending_vars) {
if (pair.second) {
......@@ -716,8 +716,8 @@ void ParallelExecutor::Run(const std::vector<std::string> &fetch_tensors,
if (member_->exception_) {
throw * member_->exception_;
}
VLOG(3) << pending_vars.size();
VLOG(3) << pending_vars.size();
continue;
}
pending_vars.erase(ready_var);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册