OnnxFfi class
ONNX Runtime FFI bindings.
This class provides low-level FFI access to the ONNX Runtime C API. For high-level usage, see OnnxRuntime in onnx_runtime.dart.
Properties
- createEnv ↔ OrtCreateEnvDart
-
latefinal
- createSession ↔ OrtCreateSessionDart
-
latefinal
- createSessionOptions ↔ OrtCreateSessionOptionsDart
-
latefinal
- createTensor ↔ OrtCreateTensorDart
-
latefinal
- getApiBase ↔ OrtGetApiBaseDart
-
latefinal
- getErrorMessage ↔ OrtGetErrorMessageDart
-
latefinal
- getTensorData ↔ OrtGetTensorDataDart
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- releaseEnv ↔ OrtReleaseEnvDart
-
latefinal
- releaseSession ↔ OrtReleaseSessionDart
-
latefinal
- releaseStatus ↔ OrtReleaseStatusDart
-
latefinal
- releaseValue ↔ OrtReleaseValueDart
-
latefinal
- run ↔ OrtRunDart
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkStatus(
Pointer< OrtStatus> status) → void - Checks an OrtStatus and throws if it indicates an error.
-
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) → OnnxFfi - Loads the ONNX Runtime library from the specified path.
-
tryLoadDefault(
) → OnnxFfi? - Attempts to load ONNX Runtime from default locations.