NativeOnnxRuntime class
Native ONNX Runtime implementation via FFI.
Requires pre-compiled Soufflé program as shared library.
- Implemented types
Constructors
- NativeOnnxRuntime({String libraryPath = 'libonnxruntime.so'})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- libraryPath → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes resources.
override
-
getEmbedding(
List< int> inputIds) → Future<List< double> > -
Runs inference and returns embeddings.
override
-
loadModel(
String modelPath) → Future< void> -
Loads an ONNX model from file.
override
-
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