Skip to content

Commit e58a502

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into map_api
test=develop
2 parents 5ca9c2d + 5ffb48d commit e58a502

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)