提交 a8d1cb0c 编写于 作者: C chengduozh

disable GraphNum_Check

test=release/1.1
上级 77193498
...@@ -158,10 +158,13 @@ ParallelExecutor::ParallelExecutor( ...@@ -158,10 +158,13 @@ ParallelExecutor::ParallelExecutor(
var_infos.back().persistable_ = node->Var()->Persistable(); var_infos.back().persistable_ = node->Var()->Persistable();
} }
} }
// If the loss_var_name is given, the number of graph should be only one.
if (loss_var_name.size()) { if (VLOG_IS_ON(5)) {
PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1, // If the loss_var_name is given, the number of graph should be only one.
"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) { if (exec_strategy.type_ == ExecutionStrategy::kDefault) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册