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:60

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:71

apply(model: AirModel) -> AirModel

Apply every enabled transform in order.

The operator order is the execution order, so it is 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
OperatorOrderErrorIf an operator reads a tensor that a later operator produces, in the loaded model or after a transform.