Registry / google-ai-edge

google-ai-edge/litert-samples/litert-runtime

Configures and implements LiteRT (.tflite) on-device inference on Android in Kotlin using the CompiledModel API on CPU and GPU. Use this skill for any Android LiteRT or .tflite task, including Gradle setup, image classification or vision/audio/embedding helpers, TensorBuffer reuse, CPU memory optimization, Bitmap preprocessing, AndroidViewModel GPU-to-CPU fallback with warm-up on a single-thread dispatcher, LiteRT in Google Play services (play-services-litert), migrating from legacy org.tensorfl

Agent skill · version 0.0.0-main.1794521403.g8630c5b · from google-ai-edge/litert-samples

Install

npx yarkr-cli add skill:google-ai-edge/litert-samples/litert-runtime

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:google-ai-edge/litert-samples/litert-runtime
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:google-ai-edge/litert-samples/litert-runtime

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:google-ai-edge/litert-samples/litert-runtime

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.