PassManager¶

class onnx_ir.passes.PassManager(passes, steps=1, early_stop=True)¶

Pass manager for the IR.

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

Parameters:
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)[source]¶

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

Parameters:

model (Model)

Return type:

PassResult