class
AirTransform
PythonBase class for all AIR model fusion/transformations.
AirTransform(enabled: bool = True, options: dict[str, Any] | None = None)Base class for all AIR model fusion/transformations.
The converter runs transforms after propagate_shapes, so every tensor
shape is already resolved when apply is called. Shape propagation does
not run again afterwards; a transform that adds tensors or changes a shape
must leave the model’s shapes consistent itself.
constant
NAME
PythonNAME: strattribute
enabled
Pythonenabled = enabledattribute
options
Pythonoptions = options or {}attribute
name
PythonUnique name of the transform.
name: strUnique name of the transform.
method
apply
PythonPerform the transform on the given model.
apply(model: AirModel) -> AirModelabstractmethod
Perform the transform on the given model.