Skip to content

Commit e943f45

Browse files
author
chengduo
authored
add graph number check (#14025)
test=develop
1 parent 6b4056b commit e943f45

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

paddle/fluid/framework/parallel_executor.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,10 @@ ParallelExecutor::ParallelExecutor(
156156
params, member_->local_scopes_, member_->use_cuda_);
157157
#endif
158158

159-
if (VLOG_IS_ON(5)) {
160-
// If the loss_var_name is given, the number of graph should be only one.
161-
if (loss_var_name.size()) {
162-
PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
163-
"The number of graph should be only one");
164-
}
159+
// If the loss_var_name is given, the number of graph should be only one.
160+
if (loss_var_name.size()) {
161+
PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
162+
"The number of graph should be only one");
165163
}
166164

167165
if (exec_strategy.type_ == ExecutionStrategy::kDefault) {

0 commit comments

Comments
 (0)