Commit 150250b0 authored by Chris Sullivan's avatar Chris Sullivan Committed by Sang Ik Lee

Consistent exclusion of subgraph inputs when traversing nodes. (#3171)

parent 2078ceac
......@@ -75,7 +75,10 @@ void ngraph::traverse_nodes(const NodeVector& subgraph_results,
for (auto r : subgraph_results)
{
stack.push_front(r);
if (instances_seen.count(r) == 0)
{
stack.push_front(r);
}
}
while (stack.size() > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment