From 866f6f1be09bc38a8ed3b51bcfc475b52c07a28a Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 19 Mar 2018 18:56:15 +0800 Subject: [PATCH] Debug --- paddle/fluid/framework/parallel_executor.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index ab0d9f72f7..08d508d542 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_ops.empty()) { + while (!pending_vars.empty()) { VarHandleBase *ready_var = nullptr; for (auto &pair : pending_vars) { if (pair.second) { @@ -716,6 +716,7 @@ void ParallelExecutor::Run(const std::vector &fetch_tensors, if (member_->exception_) { throw * member_->exception_; } + VLOG(3) << pending_vars.size(); continue; } @@ -748,9 +749,7 @@ void ParallelExecutor::RunOp( auto op_run = [ready_buffer, op, this] { try { - VLOG(10) << op->DebugString() << " " << op; op->Run(); - VLOG(10) << "Done " << op; for (auto *ready : *ready_buffer) { *ready = true; } -- GitLab