Skip to content
Snippets Groups Projects
Commit 233fed88 authored by Christophe Guillon's avatar Christophe Guillon Committed by Olivier BICHLER
Browse files

[GraphView]: Add getOrderedNodes() method for topological order

Add getOrderedNodes(reversed=false) method which produces
a topological order of the graph view (or of the reversed
graph view when reversed is true).
This order is also deterministic given the nodes set and
the ordered output nodes.
Cyclic graphs are handled by breaking back edges as declared
in the new setBackEdges() method of the Operator class.
The order is suitable for resolving constant propagation
of tensor types in one pass including for cyclic graphs
if back edges are declared correctly for operators.
It is also suitable for exporting to onnx graphs
which require a topological order of exported acyclic graphs.
parent f5ed784f
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!202[GraphView]: Add getOrderedNodes() method for topological order
Pipeline #55532 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment