共用方式為


IMLOperatorKernelCoNtext.GetOutputTensor 方法

多載

名稱 描述
GetOutputTensor(uint32_t, IMLOperatorTensor**) 取得位於指定索引處之運算子的輸出張量。
GetOutputTensor(uint32_t, uint32_t, const uint32_t*, IMLOperatorTensor**) 取得指定索引處運算子的輸出張量,同時宣告其圖形。

GetOutputTensor(uint32_t, IMLOperatorTensor**)

取得位於指定索引處之運算子的輸出張量。 這會針對不存在的選擇性輸出,將張量設定為 nullptr 。 如果運算子核心未註冊圖形推斷方法,則必須改為呼叫取用張量圖形的 GetOutputTensor 多載。 如果位於指定索引的輸出不是張量,則傳回錯誤。

void GetOutputTensor(
    uint32_t outputIndex,
    _COM_Outptr_result_maybenull_ IMLOperatorTensor** tensor)

GetOutputTensor(uint32_t, uint32_t, const uint32_t*, IMLOperatorTensor**)

取得指定索引處運算子的輸出張量,同時宣告其圖形。 這會針對不存在的選擇性輸出傳回 nullptr 。 如果運算子核心已向圖形推斷方法註冊,則也可能呼叫不使用圖形的 GetOutputTensor 多載。 如果位於指定索引的輸出不是張量,則傳回錯誤。

void GetOutputTensor(
    uint32_t outputIndex,
    uint32_t dimensionCount,
    _In_reads_(dimensionCount) const uint32_t* dimensionSizes,
    _COM_Outptr_result_maybenull_ IMLOperatorTensor** tensor)

規格需求

需求
最低支援的用戶端 Windows 10組建 17763
最低支援的伺服器 具有桌面體驗的 Windows Server 2019
標頭 MLOperatorAuthor.h

注意

使用下列資源取得 Windows ML 的說明:

  • 如需詢問或回答有關 Windows ML 的技術問題,請使用 Stack Overflow 上的 windows-machine-learning 標籤。
  • 如需回報錯誤 (bug),請在 GitHub 上提出問題。