此结构体提供了一些函数,用于填充 ONNX DirectML 执行提供程序的推理选项。请参考 https://runtime.onnx.org.cn/docs/execution-providers/DirectML-ExecutionProvider.html#directml-execution-provider。 更多...
#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> |
类构造函数。
基于设备 ID 构造 DirectML 参数。
- 参数
-
| device_id | 要使用的目标设备 ID。("0"、"1" 等) |
◆ 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> |
类构造函数。
基于适配器名称构造 DirectML 参数。
- 参数
-
| adapter_name | 要使用的目标 adapter_name。 |
◆ ddesc
此类的文档由以下文件生成