EpSelectionDelegate typedef
\brief Delegate to allow providing custom OrtEpDevice selection logic
This delegate is called by the EP selection code to allow the user to provide custom device selection logic. The user can use this to select OrtEpDevice instances from the list of available devices.
\param ep_devices The list of available devices. \param num_devices The number of available devices. \param model_metadata The model metadata. \param runtime_metadata The runtime metadata. May be nullptr. \param selected Pre-allocated array to populate with selected OrtEpDevice pointers from ep_devices. \param max_selected The maximum number of devices that can be selected in the pre-allocated array. Currently the maximum is 8. \param num_selected The number of selected devices. \param state Opaque pointer. Required to use the delegate from other languages like C# and python.
\return OrtStatus* Selection status. Return nullptr on success. Use CreateStatus to provide error info. Use ORT_FAIL as the error code. ORT will release the OrtStatus* if not null.
Implementation
typedef EpSelectionDelegate =
ffi.Pointer<ffi.NativeFunction<EpSelectionDelegateFunction>>;