LiteRT C++ API Reference

Classes

BufferRef An immutable and non-owning view of a buffer.
CompiledModel A high-level inference API for LiteRT.
CustomOpKernel Defines the C++ interface for custom operator kernels in LiteRT.
Environment The environment works like a context that holds the runtime states.
EnvironmentOptions Manages configuration options for a LiteRT Environment.
Error A C++ wrapper for a LiteRtStatus code, providing a status and an error message.
ErrorStatusBuilder A helper class for building and handling error statuses.
Event Defines the C++ wrapper for LiteRT events, used for synchronization.
Expected A utility for generic return values that may represent a failure.
Expected< void > A specialization of Expected for void.
Layout A C++ wrapper for LiteRtLayout, representing a tensor layout.
LogBeforeAbort
Model A C++ wrapper for LiteRtModel, representing a LiteRT model.
MutableBufferRef A writable, non-owning version of BufferRef.
OpaqueOptions A C++ wrapper for LiteRtOpaqueOptions, providing a way to manage and access type-erased configuration data.
Options Manages the configuration options for compiling a LiteRT model.
OwningBufferRef A writable and owning buffer reference.
TensorBuffer A C++ wrapper for LiteRtTensorBuffer, representing a tensor and its associated backing buffer.
TensorBufferRequirements Represents the requirements for allocating a TensorBuffer.
TensorBufferScopedLock A scoped lock for a TensorBuffer.
Unexpected A utility for generic return values that represents a failure.

Structs

Option
ErrorConversion Specializes this class with an implicit conversion to litert::Error and an IsError() member.
ErrorConversion< LiteRtStatus >
ErrorConversion< T * >
is_arithmetic_v< T > > >
Status >
StatusOr< T > >
ErrorConversion< bool >
Expected< T > >
Unexpected >
Mallocator Defines allocation and deallocation behavior for owning buffer refs.
Newlocator A memory allocator based on new and delete.
DmaBuf
GlBuffer
GlTexture
CanBeAbslFormated
EnvironmentHolder