From 7bff02b2ca6ab5206406bcda10a46448c5f3a71e Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 19 Mar 2018 19:00:34 +0800 Subject: [PATCH] Change to pending op --- paddle/fluid/framework/parallel_executor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 08d508d54..ac2c87845 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -703,7 +703,7 @@ void ParallelExecutor::Run(const std::vector &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 &fetch_tensors, if (member_->exception_) { throw * member_->exception_; } - VLOG(3) << pending_vars.size(); + VLOG(3) << pending_vars.size(); continue; } pending_vars.erase(ready_var); -- GitLab