SessionOptionsAppendExecutionProvider_V2 property
\brief Append the execution provider that is responsible for the selected OrtEpDevice instances to the session options.
\paramin session_options Session options to add execution provider to.
\paramin env Environment that execution providers were registered with.
\paramin ep_devices One or more OrtEpDevice instances to create an execution provider for.
Obtain from GetEpDevices. All OrtEpDevice instances must be from the same execution
provider. It is only necessary to provide multiple OrtEpDevices if you want to use the
same execution provider for multiple devices.
e.g. the EP is capable of running on GPU and NPU.
\paramin num_ep_devices Number of OrtEpDevice instances.
\paramin ep_option_keys Optional keys to configure the execution provider.
\paramin ep_option_vals Optional values to configure the execution provider.
\paramin num_ep_options Number of execution provide options to add.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.22.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSessionOptions> session_options,
ffi.Pointer<OrtEnv> env,
ffi.Pointer<ffi.Pointer<OrtEpDevice>> ep_devices,
ffi.Size num_ep_devices,
ffi.Pointer<ffi.Pointer<ffi.Char>> ep_option_keys,
ffi.Pointer<ffi.Pointer<ffi.Char>> ep_option_vals,
ffi.Size num_ep_options,
)
>
>
SessionOptionsAppendExecutionProvider_V2;