OrtKernelImpl class final

\brief Contains functions that an OrtEp implements to specify the computation for an operator kernel. \since Version 1.24.

Inheritance
Implemented types
Available extensions

Constructors

OrtKernelImpl()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
Compute Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelImpl> this_ptr, Pointer<OrtKernelContext> context)>>
\brief Computation function called to execute the kernel on an EP.
getter/setter pair
flags int
< EP must initialize to 0. Used internally by ORT.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ort_version_supported int
< Must be initialized to ORT_API_VERSION
getter/setter pair
PrePackWeight Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelImpl> this_ptr, Pointer<OrtValue> tensor, Int input_index, Pointer<OrtAllocator> allocator, Pointer<OrtSharedPrePackedWeightCache> prepacked_weight_cache, Pointer<Bool> is_packed)>>
\brief Optional function to pre-pack a constant tensor (i.e., a weight) to the kernel's preferred data layout.
getter/setter pair
Release Pointer<NativeFunction<Void Function(Pointer<OrtKernelImpl> this_ptr)>>
\brief Called by ORT to release the OrtKernelImpl instance and its resources.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
SetSharedPrePackedWeight Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelImpl> this_ptr, Pointer<Pointer<Void>> buffer_data_ptrs, Pointer<Size> buffer_data_sizes, Size num_buffers, Int input_index)>>
\brief Optional function that receives data for a shared pre-packed weight from ORT.
getter/setter pair

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