Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 15 · November 14, 2026 · Sat
Today's stories
22 stories · 9 companies
Home / November 14, 2026 / Google releases LiteRT Tensor API for building on-device models operator by operator in C++
← Back
Release Models · Google Score72

Google releases LiteRT Tensor API for building on-device models operator by operator in C++

In brief
Google has released the LiteRT Tensor API, which lets developers build on-device model graphs operator by operator in C++, with the same code running on CPU, GPU and NPU without rewriting for each kind of hardware.
InfoQ China Sergio De Simone · RSS · infoq.cn
Nov 13 · 17:17 Read the original ↗
01Summary

Google released the LiteRT Tensor API, a lightweight C++ interface that lets developers build computation graphs operator by operator and run the same code on CPU, GPU and NPU without rewriting for each hardware backend. It supports importing weights directly from checkpoints, including Hugging Face .safetensors files, shares accelerator buffers with zero copies between preprocessing, inference and postprocessing, and is convenient for AI coding agents to generate, modify and benchmark model graphs. Google built a SAM 2-based multi-object segmentation and tracking demo with a coding agent, running the same C++ code on a macOS laptop, an iOS phone and an Android phone; Google's own tests claim it is about 1.5 times faster than Apple MLX (fp16) on a MacBook Pro, and that frame rates at 512×512 on WebGPU rose from under 10fps to over 30fps. Arm AI director Laurence Moroney advises starting with model conversion and using this C++ API only when graph-level control is needed or when preprocessing and postprocessing should stay on the accelerator. A native ML Drift backend, more NPU-friendly operators, full-graph automatic quantisation and dynamic shape support are still planned.

02Background

LiteRT is Google's on-device inference framework, formerly TensorFlow Lite, and it runs models on phones, laptops and other devices using CPU, GPU and NPU. Previously, developers who wanted maximum control usually had to hand-write computation logic in C++, but the code was tied to a specific backend such as Metal, OpenCL or Vulkan, and switching hardware meant rewriting it. The LiteRT Tensor API abstracts this layer away so the same C++ computation graph runs on multiple accelerators.

03Impact

Teams already running on-device models with LiteRT or TFLite do not need to migrate immediately: as Arm AI director Laurence Moroney advises, they should still start with the model conversion flow, and switch to this C++ API only when they need graph-level control or want to keep preprocessing and postprocessing on the accelerator. Choosing this path means writing the model graph out operator by operator in C++, in exchange for reusing the same code on CPU, GPU and NPU, loading .safetensors weights directly, and avoiding buffer copies. Note that NPU-friendly operators, automatic full-graph quantisation and dynamic shape support are all still in Google's plans and not yet available.