指定自定义运算符的属性的名称和值。 注册自定义运算符内核和自定义运算符架构时,将使用此方法。
领域
名称 | 类型 | DESCRIPTION |
---|---|---|
float | const float* | 32 位浮点型值。 当类型字段为 MLOperatorAttributeType::Float 或 MLOperatorAttributeType::FloatArray 时使用。 |
int | const int64_t* | 64 位整数值。 当类型字段为 MLOperatorAttributeType::Int 或 MLOperatorAttributeType::IntArray 时使用。 |
姓名 | const char* | NULL 终止的 UTF-8 字符串,表示关联运算符类型中属性的名称。 |
保留 | const void* | |
string | const char* const* | 以 NULL 结尾的 UTF-8 字符串值。 当类型字段为 MLOperatorAttributeType::String 或 MLOperatorAttributeType::StringArray 时使用。 |
类型 | MLOperatorAttributeType | 关联运算符类型中属性的类型。 |
valueCount | uint32_t | 属性值中的元素数。 这必须是 1,但数组类型的属性除外。 |
要求
要求 | |
---|---|
支持的最低客户端 | Windows 10 内部版本 17763 |
支持的最低服务器 | 具有桌面体验的 Windows Server 2019 |
页眉 | MLOperatorAuthor.h |
注释
使用以下资源获取有关 Windows ML 的帮助:
- 若要询问或回答有关 Windows ML 的技术问题,请使用 Stack Overflow 上的 windows-machine-learning 标记。
- 若要报告 bug,请在 gitHub 提交问题。