From 36e0415220312ba9920777f1850d8f18cfa97d36 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 19 Mar 2018 16:59:08 +0800 Subject: [PATCH] Single Thread --- paddle/fluid/framework/parallel_executor.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 5b483849b1..2898c5ffd9 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -714,12 +714,6 @@ void ParallelExecutor::Run(const std::vector &fetch_tensors, throw * member_->exception_; } - { - for (auto &pair : pending_vars) { - VLOG(3) << pair.first->DebugString(); - } - } - std::this_thread::yield(); continue; } @@ -768,7 +762,8 @@ void ParallelExecutor::RunOp( } }; - member_->pool_.enqueue(op_run); + op_run(); + // member_->pool_.enqueue(op_run); } } // namespace framework } // namespace paddle -- GitLab