edgefirst-tflite
Ergonomic Rust API for TensorFlow Lite inference with DMA-BUF zero-copy and NPU-accelerated preprocessing.
Usage
[]
= "0.1"
use ;
API Tour
The main entry points are:
Library-- Load the TFLite shared library (auto-discovery or explicit path)Model-- Load a model from a file or byte bufferInterpreter-- Run inference via a builder patternTensor/TensorMut-- Type-safe tensor access with shape and quantization infoDelegate-- Hardware acceleration via external delegatesDmaBuf-- Zero-copy DMA-BUF operations (feature:dmabuf)CameraAdaptor-- NPU preprocessing configuration (feature:camera_adaptor)Metadata-- Model metadata extraction (feature:metadata)
Feature Flags
| Feature | Description |
|---|---|
dmabuf |
DMA-BUF zero-copy inference via VxDelegate |
camera_adaptor |
NPU-accelerated format conversion |
metadata |
TFLite model metadata extraction |
full |
Enables all optional features |
License
Apache-2.0