From 726fd438cd329596b2e955d2a452a3999cb14210 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Thu, 25 Oct 2018 21:01:53 +0800 Subject: [PATCH] avoid blocking everyone please fix offline --- paddle/fluid/framework/parallel_executor.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 3368ae2ee4..7dad872dd0 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -156,12 +156,6 @@ ParallelExecutor::ParallelExecutor( params, member_->local_scopes_, member_->use_cuda_); #endif - // 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, - "The number of graph should be only one"); - } - if (exec_strategy.type_ == ExecutionStrategy::kDefault) { member_->executor_.reset(new details::ThreadedSSAGraphExecutor( exec_strategy, member_->local_scopes_, places, std::move(graph))); -- GitLab