Commit e20876db authored by Nick Korovaiko's avatar Nick Korovaiko Committed by Robert Kimball

add a check that all nodes are sorted to topological sort (#1607)

parent 2f79f707
...@@ -123,6 +123,7 @@ namespace ngraph ...@@ -123,6 +123,7 @@ namespace ngraph
} }
} }
NGRAPH_ASSERT(nodes.size() == result_list.size());
return result_list; return result_list;
} }
......
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