OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::gapi::onnx::ep::DirectML 類參考

此結構體提供了一些函式,用於填充 ONNX DirectML 執行提供程式的推理選項。請參考 https://onnxruntime.llms.tw/docs/execution-providers/DirectML-ExecutionProvider.html#directml-execution-provider更多...

#include <opencv2/gapi/infer/onnx.hpp>

cv::gapi::onnx::ep::DirectML 的協作圖

公共型別

using DeviceDesc = cv::util::variant<int, std::string>
 

公共成員函式

GAPI_WRAP DirectML (const int device_id)
 類建構函式。
 
GAPI_WRAP DirectML (const std::string &adapter_name)
 類建構函式。
 

公共屬性

DeviceDesc ddesc
 

詳細描述

此結構體提供了一些函式,用於填充 ONNX DirectML 執行提供程式的推理選項。請參考 https://onnxruntime.llms.tw/docs/execution-providers/DirectML-ExecutionProvider.html#directml-execution-provider

成員 Typedef 文件

◆ 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

DeviceDesc cv::gapi::onnx::ep::DirectML::ddesc

此類的文件由以下檔案生成