VectorTypeAttribute 建構函式

定義

多載

VectorTypeAttribute()

將成員標示為具有未知大小的單一維度陣列。

VectorTypeAttribute(Int32)

將成員標示為具有指定大小的單一維度陣列。

VectorTypeAttribute(Int32[])

將成員標示為數組的預期維度。 請注意,這個屬性預期會新增至一維陣列,而且不應該新增至多維度陣列。 在內部,ML.NET 會使用此建構函式的「維度」參數所提供的圖形資訊,將其當做多維度陣列使用。

VectorTypeAttribute()

將成員標示為具有未知大小的單一維度陣列。

public VectorTypeAttribute ();
Public Sub New ()

適用於

VectorTypeAttribute(Int32)

將成員標示為具有指定大小的單一維度陣列。

public VectorTypeAttribute (int size);
new Microsoft.ML.Data.VectorTypeAttribute : int -> Microsoft.ML.Data.VectorTypeAttribute
Public Sub New (size As Integer)

參數

size
Int32

陣列的預期大小。 零值表示向量類型被視為長度未知。

適用於

VectorTypeAttribute(Int32[])

將成員標示為數組的預期維度。 請注意,這個屬性預期會新增至一維陣列,而且不應該新增至多維度陣列。 在內部,ML.NET 會使用此建構函式的「維度」參數所提供的圖形資訊,將其當做多維度陣列使用。

public VectorTypeAttribute (params int[] dimensions);
new Microsoft.ML.Data.VectorTypeAttribute : int[] -> Microsoft.ML.Data.VectorTypeAttribute
Public Sub New (ParamArray dimensions As Integer())

參數

dimensions
Int32[]

陣列的維度。 所有值都應該是非負值。 零值表示向量類型在維度上被視為具有未知長度。

適用於