Skip to content

Index

HeliosAOT Interpreters API

This module is responsible for creating a unified interpreter for the given front-end model.

Available Converters

  • LiteRT: LiteRT (TFLite) interpreter

Copyright 2025 Ambiq. All Rights Reserved.

Classes

AirInterpreter

AirInterpreter(model_path: Path)

Unified API for TinyML interpreters.

Load the model and prepare for allocation.

Functions

set_input abstractmethod
set_input(tensor: AirTensor | ndarray, key: str | int = None) -> None

Feed one input tensor by name/ID or index.

invoke abstractmethod
invoke() -> None

Run inference.

get_output abstractmethod
get_output(key: str | int = None, wrap: bool = False) -> np.ndarray | AirTensor

Fetch one output by name/ID or index.

Functions

create_interpreter

create_interpreter(model_path: Path) -> AirInterpreter

Factory: Instantiate the appropriate interpreter class based on the model file type.

Note

This function lazy-loads the interpreter class based on the file extension.