TopologicalSortPass¶

class onnx_ir.passes.common.TopologicalSortPass[source]¶

Topologically sort graphs and functions in a model.

The sort is stable, preserving the relative order of nodes that are not dependent on each other. Read more at onnx_ir.Graph.sort().

call(model)[source]¶

The main entry point for the pass.

Parameters:

model (Model)

Return type:

PassResult