HasSessionConfigEntry property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSessionOptions> options, Pointer<Char> config_key, Pointer<Int> out)>> HasSessionConfigEntry
getter/setter pair

\brief Checks if the given session configuration entry exists.

The config_key formats are defined in onnxruntime_session_options_config_keys.h

Can be used in a custom operator library to check for session configuration entries that target one or more custom operators in the library. Example: The config entry custom_op.myop.some_key targets a custom op named "myop".

\paramin options The ::OrtSessionOptions instance. \paramin config_key A null-terminated UTF-8 string representation of the configuration key. \paramout out Pointer set to 1 if the entry exists and 0 otherwise.

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

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSessionOptions> options,
      ffi.Pointer<ffi.Char> config_key,
      ffi.Pointer<ffi.Int> out,
    )
  >
>
HasSessionConfigEntry;