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
-
createCompiledModel
→ int Function(LiteRtEnvironment, LiteRtModel, LiteRtOptions, Pointer<
LiteRtCompiledModel> ) -
latefinal
-
createEnvironment
→ int Function(int, Pointer<
Void> , Pointer<LiteRtEnvironment> ) -
latefinal
-
createModelFromFile
→ int Function(Pointer<
Utf8> , Pointer<LiteRtModel> ) -
latefinal
-
createOptions
→ int Function(Pointer<
LiteRtOptions> ) -
latefinal
-
createTensorBufferFromHostMemory
→ int Function(Pointer<
Void> , Pointer<Void> , int, Pointer<Void> , Pointer<LiteRtTensorBuffer> ) -
latefinal
- destroyCompiledModel → void Function(LiteRtCompiledModel)
-
latefinal
- destroyEnvironment → void Function(LiteRtEnvironment)
-
latefinal
- destroyModel → void Function(LiteRtModel)
-
latefinal
- destroyOptions → void Function(LiteRtOptions)
-
latefinal
- destroyTensorBuffer → void Function(LiteRtTensorBuffer)
-
latefinal
-
getInputBufferRequirements
→ int Function(LiteRtCompiledModel, int, int, Pointer<
LiteRtTensorBufferRequirements> ) -
latefinal
-
getInputTensorLayout
→ int Function(LiteRtCompiledModel, int, int, Pointer<
Void> ) -
latefinal
-
getOutputBufferRequirements
→ int Function(LiteRtCompiledModel, int, int, Pointer<
LiteRtTensorBufferRequirements> ) -
latefinal
-
getOutputTensorLayouts
→ int Function(LiteRtCompiledModel, int, int, Pointer<
Void> , bool) -
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lockTensorBuffer
→ int Function(LiteRtTensorBuffer, Pointer<
Pointer< , int)Void> > -
latefinal
-
runCompiledModel
→ int Function(LiteRtCompiledModel, int, int, Pointer<
LiteRtTensorBuffer> , int, Pointer<LiteRtTensorBuffer> ) -
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