LiteRtBindings class

Minimal C-API surface for running an embedding forward pass.

Open once per process via LiteRtBindings.open; the underlying DynamicLibrary is opaque and process-cached by dart:ffi.

Constructors

LiteRtBindings.open()
factory

Properties

addOpaqueOptions → int Function(LiteRtOptions, LiteRtOpaqueOptions)
latefinal
createCompiledModel → int Function(LiteRtEnvironment, LiteRtModel, LiteRtOptions, Pointer<LiteRtCompiledModel>)
latefinal
createEnvironment → int Function(int, Pointer<Void>, Pointer<LiteRtCompiledModel>)
latefinal
createModelFromFile → int Function(LiteRtEnvironment, Pointer<Utf8>, Pointer<LiteRtCompiledModel>)
latefinal
createOpaqueOptions → int Function(Pointer<Utf8>, Pointer<Void>, Pointer<NativeFinalizerFunction>, Pointer<LiteRtCompiledModel>)
latefinal
createOptions → int Function(Pointer<LiteRtCompiledModel>)
latefinal
createTensorBufferFromHostMemory → int Function(Pointer<Void>, Pointer<Void>, int, Pointer<Void>, Pointer<LiteRtCompiledModel>)
latefinal
destroyCompiledModel → void Function(LiteRtCompiledModel)
latefinal
destroyEnvironment → void Function(LiteRtCompiledModel)
latefinal
destroyModel → void Function(LiteRtCompiledModel)
latefinal
destroyOpaqueOptions → void Function(LiteRtCompiledModel)
latefinal
destroyOptions → void Function(LiteRtCompiledModel)
latefinal
destroyTensorBuffer → void Function(LiteRtCompiledModel)
latefinal
getInputBufferRequirements → int Function(LiteRtCompiledModel, int, int, Pointer<LiteRtCompiledModel>)
latefinal
getInputTensorLayout → int Function(LiteRtCompiledModel, int, int, Pointer<Void>)
latefinal
getModelSignature → int Function(LiteRtModel, int, Pointer<LiteRtCompiledModel>)
latefinal
getNumSignatureInputs → int Function(LiteRtSignature, Pointer<Size>)
latefinal
getOutputBufferRequirements → int Function(LiteRtCompiledModel, int, int, Pointer<LiteRtCompiledModel>)
latefinal
getOutputTensorLayouts → int Function(LiteRtCompiledModel, int, int, Pointer<Void>, bool)
latefinal
getSignatureInputName → int Function(LiteRtSignature, int, Pointer<Pointer<Utf8>>)
latefinal
hashCode → int
The hash code for this object.
no setterinherited
lockTensorBuffer → int Function(LiteRtTensorBuffer, Pointer<Pointer<Void>>, int)
latefinal
runCompiledModel → int Function(LiteRtCompiledModel, int, int, Pointer<LiteRtCompiledModel>, int, Pointer<LiteRtCompiledModel>)
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setOptionsHardwareAccelerators → int Function(LiteRtOptions, int)
latefinal
unlockTensorBuffer → int Function(LiteRtTensorBuffer)
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited