OrtKernelCreateFunc typedef

\brief Type definition for a function that creates an OrtKernelImpl instance for an operator kernel.

\paramin kernel_create_func_state Opaque state initially provided by the EP that registered the kernel. Refer to OrtEpApi::KernelRegistry_AddKernel(). May be null. \paramin info The OrtKernelInfo instance that provides access to the kernel's input and output characteristics. \paramout kernel_out Output parameter set to the new OrtKernelImpl instance. On success, ownership of this OrtKernelImpl instance transfers to ORT, which will call OrtKernelImpl::Release() to release the instance when it is no longer used.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

typedef OrtKernelCreateFunc =
    ffi.Pointer<ffi.NativeFunction<OrtKernelCreateFuncFunction>>;