AidLite SDK
Install the runtime and understand model, configuration, and interpreter steps.
AidLite provides a common inference interface over the backends available in a particular AidLux image. Backend support depends on the board, image, installed SDK release, and model format.
Verify installation
Check whether the Python module is available before changing packages:
python3 -c "import aidlite; print(aidlite.get_library_version())"
If the module is absent, inspect the image's aid-pkg catalog and install the matching AidLite package. Package names and accelerator runtimes may differ between releases. Do not install a package intended for another board merely because its name is similar.
Runtime sequence
- Create a model instance from the model file.
- Declare input and output tensor shapes and data types.
- Create a configuration with a supported framework and accelerator.
- Build and initialize the interpreter.
- Set input tensors, invoke inference, and read output tensors.
- Validate shapes and values before applying postprocessing.
For the complete signatures and enum values, use the Python API or C++ API. The inference workflow explains how to validate a deployment end to end.