![]() |
OpenCV
4.10.0
Open Source Computer Vision
|
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>
Public Types | |
| using | DeviceDesc = cv::util::variant<int, std::string> |
Public Member Functions | |
| GAPI_WRAP | DirectML (const int device_id) |
| Class constructor. | |
| GAPI_WRAP | DirectML (const std::string &adapter_name) |
| Class constructor. | |
Public Attributes | |
| DeviceDesc | ddesc |
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.
| using cv::gapi::onnx::ep::DirectML::DeviceDesc = cv::util::variant<int, std::string> |
|
inlineexplicit |
Class constructor.
Constructs DirectML parameters based on device id.
| device_id | Target device id to use. ("0", "1", etc) |
|
inlineexplicit |
Class constructor.
Constructs DirectML parameters based on adapter name.
| adapter_name | Target adapter_name to use. |
| DeviceDesc cv::gapi::onnx::ep::DirectML::ddesc |
1.17.0