Skip to content
heliaAOT
API Reference
HELIA HUB

transform_pipeline

Machine-readable model

class

Ordered sequence of AIR-to-AIR transforms applied to a model.

helia_aot/transforms/transform_pipeline.py:81

TransformPipeline(transforms: list[AirTransform])

Ordered sequence of AIR-to-AIR transforms applied to a model.

Built from config by from_config, which expands the "*" wildcard spec against the transform registry so every registered transform gets an explicit enabled/disabled decision.

method

apply

Python

Apply every enabled transform in order.

helia_aot/transforms/transform_pipeline.py:92

apply(model: AirModel) -> AirModel

Apply every enabled transform in order.

The model’s structure (structure_violations) and its operator order, which is the execution order (order_violations), are checked before the first transform and after each one; the error names the stage that broke it.

Parameters of apply
NameTypeDefaultDescription
modelAirModelRequiredThe model to transform.
Returns of apply
ValueTypeDescription
AirModelAirModelThe transformed model.
Errors raised by apply
TypeDescription
ModelStructureErrorIf a tensor reference, producer or alias is ill-formed, in the loaded model or after a transform.
OperatorOrderErrorIf an operator reads a tensor that a later operator produces, in the loaded model or after a transform.