提交 a5ba704d 编写于 作者: Y Yu Yang

Counter

上级 a87ce91c
...@@ -748,9 +748,9 @@ void ParallelExecutor::RunOp( ...@@ -748,9 +748,9 @@ void ParallelExecutor::RunOp(
auto op_run = [ready_buffer, op, this] { auto op_run = [ready_buffer, op, this] {
try { try {
VLOG(10) << op->DebugString() << " " << this; VLOG(10) << op->DebugString() << " " << op;
op->Run(); op->Run();
VLOG(10) << "Done " << this; VLOG(10) << "Done " << op;
for (auto *ready : *ready_buffer) { for (auto *ready : *ready_buffer) {
*ready = true; *ready = true;
} }
...@@ -761,9 +761,7 @@ void ParallelExecutor::RunOp( ...@@ -761,9 +761,7 @@ void ParallelExecutor::RunOp(
LOG(FATAL) << "Unknown exception catched"; LOG(FATAL) << "Unknown exception catched";
} }
}; };
VLOG(3) << "Enqueue";
member_->pool_.enqueue(op_run); member_->pool_.enqueue(op_run);
VLOG(3) << "Done";
} }
} // namespace framework } // namespace framework
} // namespace paddle } // namespace paddle
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册