SessionOptionsSetEpSelectionPolicyDelegate property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSessionOptions> session_options, EpSelectionDelegate delegate, Pointer<Void> delegate_state)> >
SessionOptionsSetEpSelectionPolicyDelegate
getter/setter pair
\brief Set the execution provider selection policy delegate for the session.
Allows users to provide a custom device selection policy for automatic execution provider (EP) selection.
\paramin session_options The OrtSessionOptions instance.
\paramin delegate Delegate callback for custom selection.
\paramin delegate_state Optional state that will be passed to the delegate callback. nullptr if not required.
\since Version 1.22
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSessionOptions> session_options,
EpSelectionDelegate delegate,
ffi.Pointer<ffi.Void> delegate_state,
)
>
>
SessionOptionsSetEpSelectionPolicyDelegate;