OrtNodeComputeInfo class final

\brief The OrtNodeComputeInfo struct provides functions that an OrtEp implements to specify the compute function for a compiled OrtGraph instance. \since Version 1.23.

Inheritance
Implemented types
Available extensions

Constructors

OrtNodeComputeInfo()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
Compute Pointer<NativeFunction<Pointer<OrtStatus> Function(Pointer<OrtNodeComputeInfo> this_ptr, Pointer<Void> compute_state, Pointer<OrtKernelContext> kernel_context)>>
\brief Computation function called to execute the fused node compiled by an OrtEp instance. \paramin this_ptr The OrtNodeComputeInfo instance. \paramin compute_state The opaque computation state returned by CreateState(). \paramin kernel_context The OrtKernelContext instance used to access inputs/outputs.
getter/setter pair
CreateState Pointer<NativeFunction<Pointer<OrtStatus> Function(Pointer<OrtNodeComputeInfo> this_ptr, Pointer<OrtNodeComputeContext> compute_context, Pointer<Pointer<Void>> compute_state)>>
\brief Creates an opaque compute state object that is then passed to the Compute() function during inference. \paramin this_ptr The OrtNodeComputeInfo instance. \paramin compute_context OrtNodeComputeContext instance that contains compiled/fused node's name and host memory allocation functions. Can optionally be used to build the compute state. \paramout compute_state Output parameter that is assigned the opaque computation state. ONNX Runtime calls ReleaseState() (after calling Compute()) to allow the implementer to release the compute state.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ort_version_supported int
\brief The ONNX Runtime version the OrtNodeComputeInfo was compiled with.
getter/setter pair
ReleaseState Pointer<NativeFunction<Void Function(Pointer<OrtNodeComputeInfo> this_ptr, Pointer<Void> compute_state)>>
\brief Releases the compute state returned by CreateState(). \paramin this_ptr The OrtNodeComputeInfo instance. \paraminout compute_state The opaque compute state returned by CreateState().
getter/setter pair
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
toString() String
A string representation of this object.
inherited

Operators

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