From 98103d3003aeb79c432f28511e43493c8a477283 Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Mon, 28 Oct 2019 16:53:35 +0800 Subject: [PATCH] remove some unnecessary logs in pe, test=develop (#20848) --- .../framework/details/fast_threaded_ssa_graph_executor.cc | 4 +--- paddle/fluid/framework/details/threaded_ssa_graph_executor.cc | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/paddle/fluid/framework/details/fast_threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/fast_threaded_ssa_graph_executor.cc index 97557d2b14..28046b4a03 100644 --- a/paddle/fluid/framework/details/fast_threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/fast_threaded_ssa_graph_executor.cc @@ -271,9 +271,7 @@ void FastThreadedSSAGraphExecutor::RunTracedOps( void FastThreadedSSAGraphExecutor::RunOpSync(OpHandleBase *op) { try { - if (VLOG_IS_ON(10)) { - VLOG(10) << op << " " << op->Name() << " : " << op->DebugString(); - } + VLOG(10) << op << " " << op->Name() << " : " << op->DebugString(); if (LIKELY(!strategy_.dry_run_)) { op->Run(strategy_.use_cuda_); } diff --git a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc index db28e1fe20..86d33c242d 100644 --- a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc @@ -320,9 +320,7 @@ void ThreadedSSAGraphExecutor::RunTracedOps( void ThreadedSSAGraphExecutor::RunOpSync(OpHandleBase *op) { try { - if (VLOG_IS_ON(10)) { - VLOG(10) << op << " " << op->Name() << " : " << op->DebugString(); - } + VLOG(10) << op << " " << op->Name() << " : " << op->DebugString(); if (LIKELY(!strategy_.dry_run_)) { op->Run(strategy_.use_cuda_); } -- GitLab