We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824a82d commit d6747a9Copy full SHA for d6747a9
paddle/fluid/framework/parallel_executor.cc
@@ -156,10 +156,12 @@ ParallelExecutor::ParallelExecutor(
156
params, member_->local_scopes_, member_->use_cuda_);
157
#endif
158
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");
+ if (VLOG_IS_ON(5)) {
+ // If the loss_var_name is given, the number of graph should be only one.
+ if (loss_var_name.size()) {
+ PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
163
+ "The number of graph should be only one");
164
+ }
165
}
166
167
if (exec_strategy.type_ == ExecutionStrategy::kDefault) {
0 commit comments