Skip to content

Commit

Permalink
small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed May 22, 2018
1 parent 471e6d2 commit ae9340d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/graph_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ GraphExecutor::CachedSegOpr GraphExecutor::CreateCachedSegOpr(size_t topo_start,
if (inode.source->is_variable()) continue;
// We shouldn't add control flow operators to a segment.
// We can't execute these operators in the engine.
if (op_node.exec->HasSubgraph()) continue;
if (op_node.exec->HasSubgraph()) return ret;
if (op_node.exec->exec_type() != ExecType::kSync) {
return ret;
}
Expand Down

0 comments on commit ae9340d

Please sign in to comment.