From 5452b6a1528dd68f8d37f28b0b87a020005eb78f Mon Sep 17 00:00:00 2001 From: wopeizl Date: Mon, 23 Sep 2019 16:38:36 +0800 Subject: [PATCH] remove the useless warning for user to avoid confuse test=develop (#19871) * remove the useless warning for user to avoid confuse test=develop --- paddle/fluid/framework/parallel_executor.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 48c26a216a..a12b4c8766 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -565,21 +565,6 @@ ParallelExecutor::ParallelExecutor(const std::vector &places, } } - // If the loss_var_name is given, the number of graph should be only one. - if (loss_var_name.size()) { - size_t graph_num = ir::GraphNum(*graph); - if (graph_num > 1) { - LOG(WARNING) - << "The number of graph should be only one, " - "but the current graph has " - << ir::GraphNum(*graph) - << " sub_graphs. If you want to see the nodes of the " - "sub_graphs, you should use 'FLAGS_print_sub_graph_dir' " - "to specify the output dir. NOTES: if you not do training, " - "please don't pass loss_var_name."; - } - } - std::unordered_map scope_map; for (auto *scope : member_->local_scopes_) { auto &local_exec_scope = scope->NewScope(); -- GitLab