共用方式為


IMLOperatorShapeInferenceContext.GetInputTensorShape 方法

取得運算符輸入張量的維度大小。 如果位於指定索引的輸入不是張量,則傳回錯誤。

void GetInputTensorShape(
    uint32_t inputIndex,
    uint32_t dimensionCount,
    _Out_writes_(dimensionCount) uint32_t* dimensions)

需求

要求
最低支援的用戶端 Windows 10 組建 17763
支援的最低伺服器 具有桌面體驗的 Windows Server 2019
標題 MLOperatorAuthor.h(機器學習運算符作者)

備註

使用以下資源以獲得 Windows ML 的協助。

  • 若要詢問或回答 Windows ML 的相關技術問題,請在 Stack Overflow上使用 windows-machine-learning 卷標。
  • 若要回報錯誤,請在 GitHub 提出問題。