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.
2 parents d4908cc + a8d1cb0 commit 1ea0195Copy full SHA for 1ea0195
paddle/fluid/framework/parallel_executor.cc
@@ -158,10 +158,13 @@ ParallelExecutor::ParallelExecutor(
158
var_infos.back().persistable_ = node->Var()->Persistable();
159
}
160
161
- // If the loss_var_name is given, the number of graph should be only one.
162
- if (loss_var_name.size()) {
163
- PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
164
- "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()) {
165
+ PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
166
+ "The number of graph should be only one");
167
+ }
168
169
170
if (exec_strategy.type_ == ExecutionStrategy::kDefault) {
0 commit comments