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
......@@ -74,9 +74,12 @@ void ngraph::traverse_nodes(const NodeVector& subgraph_results,
std::deque<std::shared_ptr<Node>> stack;
for (auto r : subgraph_results)
{
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