From e18a2697054f02d87d1289f7feed1081cf3599c3 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 19 Mar 2018 15:08:09 +0800 Subject: [PATCH] Add debug code --- paddle/fluid/framework/parallel_executor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index cfaa2dbd1f8..b3bf2b8fb67 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -46,6 +46,8 @@ struct VarHandle : public VarHandleBase { return ss.str(); } + // version field currently is not used, however, just store the version to + // debug easily. size_t version_; std::string name_; platform::Place place_; @@ -742,7 +744,7 @@ void ParallelExecutor::RunOp( auto op_run = [ready_buffer, op, this] { try { - // TODO(yy) Check Previous Op has same dev ctx. + VLOG(10) << op->DebugString(); op->Run(); for (auto *ready : ready_buffer) { *ready = true; -- GitLab