PassBase¶
- class onnx_ir.passes.PassBase¶
Base class for all passes.
in_place
andchanges_input
properties and what they mean:changes_inputs
not changes_inputs
in_place
in place
Side-effect-only pass
not in_place
destructive
functional
- abstract call(model: Model) PassResult [source]¶
The main entry point for the pass.
- property destructive: bool¶
Whether the pass will destroy the input model when
in_place=False
.A pass is destructive if it is not in place and it modifies the input model.
- ensures(model: Model) None [source]¶
Post-conditions for the pass.
This is optional to implement, will be called after call() if run by a pass manager.