指定自訂運算子屬性的名稱和值。 註冊自定義運算子核心和自定義運算符架構時,會使用此方式。
領域
名稱 | 類型 | 說明 |
---|---|---|
漂浮 | const 浮點數* | 32 位浮點值。 當類型欄位是 MLOperatorAttributeType::Float 或 MLOperatorAttributeType::FloatArray 時使用。 |
整數 | const int64_t* | 64 位整數值。 當類型欄位是 MLOperatorAttributeType::Int 或 MLOperatorAttributeType::IntArray 時使用。 |
名稱 | const 字元* | NULL 終止的UTF-8字串,代表相關聯運算元類型中屬性的名稱。 |
保留 | 常量虛空* | |
字串 | 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 標籤。
- 若要回報錯誤,請在 GitHub 提出問題。