ONNX Runtime
Loading...
Searching...
No Matches
OrtEpApi Struct Reference

#include <onnxruntime_c_api.h>

Public Member Functions

OrtStatusCreateEpDevice (OrtEpFactory *ep_factory, const OrtHardwareDevice *hardware_device, const OrtKeyValuePairs *ep_metadata, const OrtKeyValuePairs *ep_options, OrtEpDevice **ep_device)
 Create an OrtEpDevice for the EP and an OrtHardwareDevice.
 
void ReleaseEpDevice (OrtEpDevice *input)
 

Member Function Documentation

◆ CreateEpDevice()

OrtStatus * OrtEpApi::CreateEpDevice ( OrtEpFactory ep_factory,
const OrtHardwareDevice hardware_device,
const OrtKeyValuePairs ep_metadata,
const OrtKeyValuePairs ep_options,
OrtEpDevice **  ep_device 
)

Create an OrtEpDevice for the EP and an OrtHardwareDevice.

Parameters
[in]ep_factoryExecution provider factory that is creating the instance.
[in]hardware_deviceHardware device that the EP can utilize.
[in]ep_metadataOptional OrtKeyValuePairs instance for execution provider metadata that may be used during execution provider selection and passed to CreateEp. ep_device will copy this instance and the user should call ReleaseKeyValuePairs.
[in]ep_optionsOptional OrtKeyValuePairs instance for execution provider options that will be added to the Session configuration options if the execution provider is selected. ep_device will copy this instance and the user should call ReleaseKeyValuePairs.
ep_deviceOrtExecutionDevice that is created.
Since
Version 1.22.

◆ ReleaseEpDevice()

void OrtEpApi::ReleaseEpDevice ( OrtEpDevice input)