Skip to content

Index

heliaAOT LiteRT API

Thin compatibility wrapper that re-exports LiteRT APIs from ai-edge-litert.

Functions

get_builtin_operator_name

get_builtin_operator_name(model: 'litert.ModelT', opcode_index: int) -> str

Return the builtin operator name for the given opcode index.

list_subgraph_operator_names

list_subgraph_operator_names(model: 'litert.ModelT', subgraph_index: int) -> list[str]

Return builtin operator names for one LiteRT subgraph.

apply_litert_model_hooks

apply_litert_model_hooks(model: 'litert.ModelT', *, model_path: Path, subgraph_index: int, hooks: list[LiteRtModelHook]) -> 'litert.ModelT'

Apply frontend-specific LiteRT hooks before AIR conversion.

Hooks may mutate the ModelT in place or return a replacement model. They run before the selected subgraph is flattened into AIR, so they can inspect and rewrite cross-subgraph control-flow structures such as WHILE.