From 9465c3d0c393f7e7c5665f561433ca65e193396c Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Thu, 21 Feb 2019 16:28:38 +0800 Subject: [PATCH] fix compile problem --- paddle/fluid/framework/parallel_executor.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index dfadfb57dbd..67ccf04d057 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -21,8 +21,8 @@ limitations under the License. */ #include "paddle/fluid/framework/ir/graph.h" -#include "paddle/fluid/framework/details/async_ssa_graph_executor.h" #include "paddle/fluid/framework/details/all_reduce_deps_pass.h" +#include "paddle/fluid/framework/details/async_ssa_graph_executor.h" #include "paddle/fluid/framework/details/fast_threaded_ssa_graph_executor.h" #include "paddle/fluid/framework/details/multi_devices_helper.h" #include "paddle/fluid/framework/details/parallel_ssa_graph_executor.h" @@ -260,6 +260,7 @@ ParallelExecutor::ParallelExecutor( // Step 2. Convert main_program to SSA form and dependency graph. Also, insert // ncclOp std::unique_ptr graph; + std::vector> graphs; #if defined(PADDLE_WITH_CUDA) && !defined(_WIN32) graph = build_strategy.Apply(main_program, member_->places_, loss_var_name, member_->local_scopes_, member_->nranks_, @@ -273,10 +274,9 @@ ParallelExecutor::ParallelExecutor( graphs.push_back(std::move(graph)); } } else { - std::unique_ptr graph = build_strategy.Apply( - main_program, member_->places_, loss_var_name, member_->local_scopes_, - member_->nranks_, member_->use_cuda_); - graphs.push_back(std::move(graph)); + graph = build_strategy.Apply(main_program, member_->places_, loss_var_name, + member_->local_scopes_, member_->nranks_, + member_->use_cuda_); } #endif auto max_memory_size = GetEagerDeletionThreshold(); -- GitLab