Skip to content
heliaAOT
API Reference
HELIA HUB

operator

Machine-readable model

  • OpIdattribute
  • AirOperatorSourceclassThe model-file operator an AIR operator was parsed from.
  • AirOperatorclassIntermediate Representation of an operator (node) in the graph.
class

The model-file operator an AIR operator was parsed from.

helia_aot/air/operator.py:17

AirOperatorSource()

The model-file operator an AIR operator was parsed from.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

attribute

name

Python

helia_aot/air/operator.py:32

name: str = Field(..., description="The operator's name in the model file")

The operator’s name in the model file: a LiteRT builtin operator name such as LESS, or a custom operator’s canonical key.

attribute

op_type

Python

helia_aot/air/operator.py:33

op_type: str = Field(..., description='Canonical key of the AIR type the parser gave it')

The canonical key of the AIR type the parser gave it, which a transform that rewrites the operator leaves behind.

attribute

indices

Python

helia_aot/air/operator.py:34

indices: tuple[int, ...] = Field(..., description="Operator indices in the model file's subgraph")

The operator’s index, or the indices a LiteRT model hook states for an operator it created in place of others, in the converted subgraph of the model file; empty for an operator a hook created without stating any.

class

Intermediate Representation of an operator (node) in the graph.

helia_aot/air/operator.py:37

AirOperator()

Intermediate Representation of an operator (node) in the graph.

attribute

id

Python

helia_aot/air/operator.py:54

id: OpId = Field(..., description="Unique node identifier: a decimal integer string from 0 to 2147483647 (e.g. '3')")

Unique node identifier: a decimal integer string from 0 to 2147483647 that no other operator in the model has (e.g. ‘3’).

attribute

options

Python

helia_aot/air/operator.py:61

options: AirOperatorOptions = Field(default_factory=AirOperatorOptions, description='Typed options/config for this op.')

Typed options/config for this op.

attribute

source

Python

helia_aot/air/operator.py:64

source: AirOperatorSource | None = Field(None, description='The model-file operator it was parsed from; None for one a transform created.')

The model-file operator it was parsed from, which the model loader records; None for an operator a transform created.

attribute

All tensor IDs (inputs + outputs + named tensors) associated with this operator.

helia_aot/air/operator.py:75

tensor_ids: list[TensorId]

All tensor IDs (inputs + outputs + named tensors) associated with this operator.