KernelInfo_GetConfigEntries property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelInfo> info, Pointer<Pointer<OrtKeyValuePairs>> out)>> KernelInfo_GetConfigEntries
getter/setter pair

\brief Get all config entries from ::OrtKernelInfo.

Gets all configuration entries from the ::OrtKernelInfo object as key-value pairs. Config entries are set on the ::OrtSessionOptions and are accessible in custom operator kernels.

Used in the CreateKernel callback of an OrtCustomOp to access all session configuration entries during kernel construction.

\paramin info An instance of ::OrtKernelInfo. \paramout out A pointer to a newly created OrtKeyValuePairs instance containing all config entries. Note: the user should call OrtApi::ReleaseKeyValuePairs.

\snippet{doc} snippets.dox OrtStatus Return Value \since Version 1.24

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtKernelInfo> info,
      ffi.Pointer<ffi.Pointer<OrtKeyValuePairs>> out,
    )
  >
>
KernelInfo_GetConfigEntries;