PassManager¶

class onnx_ir.passes.PassManager(passes: Sequence[PassBase], steps: int = 1, early_stop: bool = True)¶

Pass manager for the IR.

The PassManager is a Pass that runs a sequence of passes on a model.

passes¶

The passes to run.

steps¶

The number of times to run the passes.

early_stop¶

Whether to stop running the passes if the graph stops changing.

call(model: Model) PassResult[source]¶

Run the set of passes steps number of times or until the graph stops changing.