Google releases LiteRT Tensor API for portable C++ model graphs
Google releases the LiteRT Tensor API to build model and pre/post-processing graphs op by op in C++, ingest weights directly and chain pipelines through shared accelerator buffers. Graphs can export to .tflite for LiteRT or run directly on CPU through XNNPACK. Google still recommends conventional conversion for most projects.
- Targets new architectures and optimizations requiring graph-level control, including model construction and tuning by coding agents.
- Supports LiteRT execution or direct XNNPACK today; direct GPU backends, Python authoring and wider dynamic shapes remain in development.
- An open SAM 2 sample demonstrates on-device browser segmentation; performance results belong to the vendor’s specific tests.
APICapabilities
Original evidence · 2026-10-19
Google Developers Blog ↗Based on original textWhy it matters
Provides a new low-level model-authoring interface for edge inference and coding agents.