此結構體提供了一些函式,用於填充 ONNX DirectML 執行提供程式的推理選項。請參考 https://onnxruntime.llms.tw/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
此類的文件由以下檔案生成