IMLOperatorShapeInferenceContext.SetOutputTensorShape 方法

设置输出张量的推断形状。 如果指定索引处的输出不是张量,则返回一个错误。

void SetOutputTensorShape(
    uint32_t outputIndex,
    uint32_t dimensionCount,
    const uint32_t* dimensions)

要求

要求
最低支持的客户端 Windows 10 版本 17763
支持的最低服务器 具有桌面体验的 Windows Server 2019
标头 MLOperatorAuthor.h

注释

使用以下资源获取有关 Windows ML 的帮助:

  • 若要提出或回答有关 Windows ML 的技术问题,请在 Stack Overflow 上使用 windows-machine-learning 标记。
  • 若要报告 bug,请在 GitHub 上提交问题。