VectorTypeAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許將成員標記為 VectorDataViewType,主要用於設定結果陣列的維度。
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class VectorTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type VectorTypeAttribute = class
inherit Attribute
Public NotInheritable Class VectorTypeAttribute
Inherits Attribute
- 繼承
-
VectorTypeAttribute
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| VectorTypeAttribute() |
將成員標記為大小未知的單維陣列。 |
| VectorTypeAttribute(Int32) |
將成員標記為具有指定大小的一維陣列。 |
| VectorTypeAttribute(Int32[]) |
標記成員,預期陣列維度。 請注意,這個屬性預期會被加入到一維陣列中,而不應該被加到多維陣列中。 在內部,ML.NET 會利用此建構子的「維度」參數作為形狀資訊,將其作為多維陣列使用。 |