Skip to content

Commit 0485405

Browse files
committed
add more debug string
1 parent eccf0d5 commit 0485405

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

paddle/fluid/framework/executor.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,12 @@ void Executor::RunPreparedContext(ExecutorPrepareContext* ctx, Scope* scope,
317317
}
318318

319319
for (auto& op : ctx->ops_) {
320-
VLOG(3) << place_ << " " << op->DebugStringEx(local_scope);
320+
VLOG(4) << place_ << " " << op->DebugStringEx(local_scope);
321321
op->Run(*local_scope, place_);
322+
// NOTE! Please do not delete this line, it's usefull because the debug
323+
// string before and after op.run are different, after run the output
324+
// will have right shape which is usefull for debug.
325+
VLOG(3) << place_ << " " << op->DebugStringEx(local_scope);
322326

323327
if (FLAGS_benchmark) {
324328
VLOG(2) << "Memory used after operator " + op->Type() + " running: "

0 commit comments

Comments
 (0)