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[]

数组的维度。 所有值都应为非负值。 零值表示矢量类型被视为沿该维度具有未知长度。

适用于