Skip to content

Commit 726fd43

Browse files
committed
avoid blocking everyone
please fix offline
1 parent 3cab25a commit 726fd43

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

paddle/fluid/framework/parallel_executor.cc

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

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");
163-
}
164-
165159
if (exec_strategy.type_ == ExecutionStrategy::kDefault) {
166160
member_->executor_.reset(new details::ThreadedSSAGraphExecutor(
167161
exec_strategy, member_->local_scopes_, places, std::move(graph)));

0 commit comments

Comments
 (0)