From a5ba704de060f3e23eac74fcdc3e635c1cf6c2a7 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 19 Mar 2018 18:38:36 +0800 Subject: [PATCH] Counter --- paddle/fluid/framework/parallel_executor.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 773e5c0074..ab0d9f72f7 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -748,9 +748,9 @@ void ParallelExecutor::RunOp( auto op_run = [ready_buffer, op, this] { try { - VLOG(10) << op->DebugString() << " " << this; + VLOG(10) << op->DebugString() << " " << op; op->Run(); - VLOG(10) << "Done " << this; + VLOG(10) << "Done " << op; for (auto *ready : *ready_buffer) { *ready = true; } @@ -761,9 +761,7 @@ void ParallelExecutor::RunOp( LOG(FATAL) << "Unknown exception catched"; } }; - VLOG(3) << "Enqueue"; member_->pool_.enqueue(op_run); - VLOG(3) << "Done"; } } // namespace framework } // namespace paddle -- GitLab