TfLiteBindings class

Raw FFI bindings to the TensorFlow Lite C API.

Loads libtensorflowlite_c from the app bundle and exposes the minimal set of functions needed for embedding model inference.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tfLiteInterpreterAllocateTensors int Function(Pointer<Void> interpreter)
latefinal
tfLiteInterpreterCreate Pointer<Void> Function(Pointer<Void> model, Pointer<Void> options)
latefinal
tfLiteInterpreterCreateWithSelectedOps Pointer<Void> Function(Pointer<Void> model, Pointer<Void> options)
latefinal
tfLiteInterpreterDelete → void Function(Pointer<Void> interpreter)
latefinal
tfLiteInterpreterGetInputTensor Pointer<Void> Function(Pointer<Void> interpreter, int inputIndex)
latefinal
tfLiteInterpreterGetInputTensorCount int Function(Pointer<Void> interpreter)
latefinal
tfLiteInterpreterGetOutputTensor Pointer<Void> Function(Pointer<Void> interpreter, int outputIndex)
latefinal
tfLiteInterpreterGetOutputTensorCount int Function(Pointer<Void> interpreter)
latefinal
tfLiteInterpreterInvoke int Function(Pointer<Void> interpreter)
latefinal
tfLiteInterpreterOptionsAddDelegate → void Function(Pointer<Void> options, Pointer<Void> delegate)
latefinal
tfLiteInterpreterOptionsCreate Pointer<Void> Function()
latefinal
tfLiteInterpreterOptionsDelete → void Function(Pointer<Void> options)
latefinal
tfLiteInterpreterOptionsSetNumThreads → void Function(Pointer<Void> options, int numThreads)
latefinal
tfLiteModelCreateFromFile Pointer<Void> Function(Pointer<Utf8> modelPath)
latefinal
tfLiteModelDelete → void Function(Pointer<Void> model)
latefinal
tfLiteTensorCopyFromBuffer int Function(Pointer<Void> tensor, Pointer<Void> inputData, int inputDataSize)
latefinal
tfLiteTensorCopyToBuffer int Function(Pointer<Void> tensor, Pointer<Void> outputData, int outputDataSize)
latefinal
tfLiteTensorDim int Function(Pointer<Void> tensor, int dimIndex)
latefinal
tfLiteTensorNumDims int Function(Pointer<Void> tensor)
latefinal
tfLiteXNNPackDelegateCreate Pointer<Void> Function(Pointer<TfLiteXNNPackDelegateOptions> options)
latefinal
tfLiteXNNPackDelegateDelete → void Function(Pointer<Void> delegate)
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

Static Methods

load({String? libraryPath}) TfLiteBindings
Load TFLite C library from the platform-specific location.