Unverified Commit a3768ee4 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Merge branch 'master' into dcaballe/argmin

parents ba63c9a5 150250b0
......@@ -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