Introducing Google AI Edge Portal: Benchmark Edge AI at scale. Sign-up to request access during private preview.

Class Index

These are all the API classes. See all API packages.

A B C E J L M N S T

A

Accelerator

Hardware accelerators supported by LiteRT.

AiPackModelProvider

A ModelProvider that's backed by on-demand Google Play AI Pack.

B

BuiltinNpuAcceleratorProvider

An implementation of NpuAcceleratorProvider , which provides the NPU libraries without dynamic downloading.

C

CompiledModel

Class that represents a compiled LiteRT model.

CompiledModel.Options

Options to specify hardware acceleration for compiling a model.

E

Environment

Environment to hold configuration options for LiteRT runtime.

Environment.Option

Options configurable in LiteRT environment.

J

JniHandle

A base class for all Kotlin types that wrap a JNI handle.

L

LiteRtException

Exception for various LiteRT API errors.

M

Model

Model represents a LiteRT model file.

ModelProvider

A model provider that provides a model file and relevant information.

ModelProvider.Type

Model files could be either an asset or a file.

ModelSelector

ModelSelector allows to dynamically select a ModelProvider from a given set of providers.

N

NpuAcceleratorProvider

An interface to provide the NPU libraries.

NpuCompatibilityChecker

An interface to checks if the device is compatible with NPU.

S

Status

Status codes for LiteRtException.

T

TensorBuffer

TensorBuffer represents the raw memory where tensor data is stored.

TensorBufferRequirements

Requirements for allocating a TensorBuffer.

TensorBufferType

The type of the tensor buffer.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年05月13日 UTC.