VectorTypeAttribute Třída

Definice

Umožňuje, aby byl člen označený jako VectorDataViewType, a primárně umožňuje nastavit rozměry výsledného pole.

[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
Dědičnost
VectorTypeAttribute
Atributy

Konstruktory

VectorTypeAttribute()

Označte člena jako jednorozměrné pole s neznámou velikostí.

VectorTypeAttribute(Int32)

Označte člen jako jednorozměrné pole se zadanou velikostí.

VectorTypeAttribute(Int32[])

Označte člena s očekávanými rozměry pole. Všimněte si, že se očekává přidání tohoto atributu do jednoho dimenzionálního pole a nemělo by být přidáno do multidimenzionálních polí. Interně ML.NET použije informace o obrazci poskytnuté jako parametry "dimenze" tohoto konstruktoru, aby je bylo možné použít jako multidimenzionální pole.

Platí pro