KernelRegistry_AddKernel property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelRegistry> kernel_registry, Pointer<OrtKernelDef> kernel_def, OrtKernelCreateFunc kernel_create_func, Pointer<Void> kernel_create_func_state)>> KernelRegistry_AddKernel
getter/setter pair

\brief Adds kernel creation information for a supported operator kernel to the given kernel registry.

\remarks Refer to OrtEp::GetKernelRegistry, which returns an EP's kernel registry to ORT.

\paramin kernel_registry The OrtKernelRegistry instance. \paramin kernel_def The kernel definition, which includes operator type, version, EP name, type constraints, etc. \paramin kernel_create_func Function that creates an instance of the operator kernel as a OrtKernelImpl instance. \paramin kernel_create_func_state Custom state passed to the kernel creation function. Can be null.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtKernelRegistry> kernel_registry,
      ffi.Pointer<OrtKernelDef> kernel_def,
      OrtKernelCreateFunc kernel_create_func,
      ffi.Pointer<ffi.Void> kernel_create_func_state,
    )
  >
>
KernelRegistry_AddKernel;