Share via


VectorTypeAttribute Constructors

Definition

Overloads

VectorTypeAttribute()

Mark member as single-dimensional array with unknown size.

VectorTypeAttribute(Int32)

Mark member as single-dimensional array with specified size.

VectorTypeAttribute(Int32[])

Mark member with expected dimensions of array. Notice that this attribute is expected to be added to one dimensional arrays, and it shouldn't be added to multidimensional arrays. Internally, ML.NET will use the shape information provided as the "dimensions" param of this constructor, to use it as a multidimensional array.

VectorTypeAttribute()

Mark member as single-dimensional array with unknown size.

public VectorTypeAttribute ();
Public Sub New ()

Applies to

VectorTypeAttribute(Int32)

Mark member as single-dimensional array with specified size.

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

Parameters

size
Int32

Expected size of array. A zero value indicates that the vector type is considered to have unknown length.

Applies to

VectorTypeAttribute(Int32[])

Mark member with expected dimensions of array. Notice that this attribute is expected to be added to one dimensional arrays, and it shouldn't be added to multidimensional arrays. Internally, ML.NET will use the shape information provided as the "dimensions" param of this constructor, to use it as a multidimensional array.

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

Parameters

dimensions
Int32[]

Dimensions of array. All values should be non-negative. A zero value indicates that the vector type is considered to have unknown length along that dimension.

Applies to