IMLOperatorAttributes.GetAttributeElementCount 方法

获取属性中元素的数量。 这可用于确定属性是否存在,以及确定数组类型的属性中的元素计数。

void GetAttributeElementCount(
    _In_z_ const char* name,
    MLOperatorAttributeType type,
    _Out_ uint32_t* elementCount)

要求

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

注释

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

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