VectorTypeAttribute 類別

定義

允許將成員標示為 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
屬性

建構函式

VectorTypeAttribute()

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

VectorTypeAttribute(Int32)

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

VectorTypeAttribute(Int32[])

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

適用於