This structure provides functions that fill inference options for ONNX DirectML Execution Provider. Please follow https://onnxruntime.ai/docs/execution-providers/DirectML-ExecutionProvider.html#directml-execution-provider.
More...
#include <opencv2/gapi/infer/onnx.hpp>
◆ DeviceDesc
◆ DirectML() [1/2]
GAPI_WRAP cv::gapi::onnx::ep::DirectML::DirectML |
( |
const int | device_id | ) |
|
|
inlineexplicit |
Python: |
---|
| cv.gapi.onnx.ep.DirectML( | | ) -> | <gapi_onnx_ep_DirectML object> |
| cv.gapi.onnx.ep.DirectML( | device_id | ) -> | <gapi_onnx_ep_DirectML object> |
| cv.gapi.onnx.ep.DirectML( | adapter_name | ) -> | <gapi_onnx_ep_DirectML object> |
Class constructor.
Constructs DirectML parameters based on device id.
- Parameters
-
device_id | Target device id to use. ("0", "1", etc) |
◆ DirectML() [2/2]
GAPI_WRAP cv::gapi::onnx::ep::DirectML::DirectML |
( |
const std::string & | adapter_name | ) |
|
|
inlineexplicit |
Python: |
---|
| cv.gapi.onnx.ep.DirectML( | | ) -> | <gapi_onnx_ep_DirectML object> |
| cv.gapi.onnx.ep.DirectML( | device_id | ) -> | <gapi_onnx_ep_DirectML object> |
| cv.gapi.onnx.ep.DirectML( | adapter_name | ) -> | <gapi_onnx_ep_DirectML object> |
Class constructor.
Constructs DirectML parameters based on adapter name.
- Parameters
-
adapter_name | Target adapter_name to use. |
◆ ddesc
The documentation for this class was generated from the following file: