Skip to content

base

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.