SessionOptionsSetEpSelectionPolicy property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSessionOptions> session_options, UnsignedInt policy)>> SessionOptionsSetEpSelectionPolicy
getter/setter pair

\brief Set the execution provider selection policy for the session.

Allows users to specify a device selection policy for automatic execution provider (EP) selection. If custom selection is required please use SessionOptionsSetEpSelectionPolicyDelegate instead.

\paramin session_options The OrtSessionOptions instance. \paramin policy The device selection policy to use (see OrtExecutionProviderDevicePolicy).

\since Version 1.22

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSessionOptions> session_options,
      ffi.UnsignedInt policy,
    )
  >
>
SessionOptionsSetEpSelectionPolicy;