From 43e54079a89a31a3970989b34178391a2120f0e8 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 20 Mar 2018 19:32:35 +0800 Subject: [PATCH] Debug code --- paddle/fluid/framework/parallel_executor.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 82df86bebdc..382e13451f2 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -545,6 +545,13 @@ void ParallelExecutor::ConstructDependencyGraph( harzaeds need to be handled. */ PolishGraphToSupportDataHazards(); + + for (auto &g : grads) { + LOG(INFO) << member_->vars_.begin() + ->second[g] + .rbegin() + ->second.pending_ops_.size(); + } } /** -- GitLab