OnnxRuntimeBindings class

Bindings for headers/onnxruntime_c_api.h. Regenerate bindings with dart run ffigen --config ffigen.yaml.

Constructors

OnnxRuntimeBindings(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
OnnxRuntimeBindings.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
OrtGetApiBase() Pointer<OrtApiBase>
\brief The Onnxruntime library's entry point to access the C API
OrtSessionOptionsAppendExecutionProvider_CUDA(Pointer<OrtSessionOptions> options, int device_id) OrtStatusPtr
This is the old way to add the CUDA provider to the session, please use SessionOptionsAppendExecutionProvider_CUDA above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with CUDA support and the CUDA provider shared library exists
OrtSessionOptionsAppendExecutionProvider_Dnnl(Pointer<OrtSessionOptions> options, int use_arena) OrtStatusPtr
This is the old way to add the oneDNN provider to the session, please use SessionOptionsAppendExecutionProvider_oneDNN above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with oneDNN support and the oneDNN provider shared library exists
OrtSessionOptionsAppendExecutionProvider_MIGraphX(Pointer<OrtSessionOptions> options, int device_id) OrtStatusPtr
This is the old way to add the MIGraphX provider to the session, please use SessionOptionsAppendExecutionProvider_MIGraphX above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with HIP support and the MIGraphX provider shared library exists
OrtSessionOptionsAppendExecutionProvider_Nnapi(Pointer<OrtSessionOptions> options, int nnapi_flags) OrtStatusPtr
OrtSessionOptionsAppendExecutionProvider_ROCM(Pointer<OrtSessionOptions> options, int device_id) OrtStatusPtr
This is the old way to add the ROCm provider to the session, please use SessionOptionsAppendExecutionProvider_ROCM above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with HIP support and the ROCm provider shared library exists
OrtSessionOptionsAppendExecutionProvider_Tensorrt(Pointer<OrtSessionOptions> options, int device_id) OrtStatusPtr
This is the old way to add the TensorRT provider to the session, please use SessionOptionsAppendExecutionProvider_TensorRT_V2 above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with TensorRT support and the TensorRT provider shared library exists
toString() String
A string representation of this object.
inherited

Operators

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