CreateState property
Pointer<NativeFunction<Pointer<OrtStatus> Function(Pointer<OrtNodeComputeInfo> this_ptr, Pointer<OrtNodeComputeContext> compute_context, Pointer<Pointer<Void> > compute_state)> >
CreateState
getter/setter pair
\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.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
ffi.Pointer<OrtStatus> Function(
ffi.Pointer<OrtNodeComputeInfo> this_ptr,
ffi.Pointer<OrtNodeComputeContext> compute_context,
ffi.Pointer<ffi.Pointer<ffi.Void>> compute_state,
)
>
>
CreateState;