VectorDataViewType 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>) |
建構潛在的多維度向量類型。 |
VectorDataViewType(PrimitiveDataViewType, Int32) |
建構新的單一維度向量類型。 |
VectorDataViewType(PrimitiveDataViewType, Int32[]) |
建構潛在的多維度向量類型。 |
VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)
建構潛在的多維度向量類型。
public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, System.Collections.Immutable.ImmutableArray<int> dimensions);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * System.Collections.Immutable.ImmutableArray<int> -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, dimensions As ImmutableArray(Of Integer))
參數
- itemType
- PrimitiveDataViewType
向量中包含的專案類型。
- dimensions
- ImmutableArray<Int32>
維度。 請注意,就像 一樣 Dimensions ,所有非負值都必須是非空白。 此外,因為 Size 是 的 Dimensions 乘積,所以將所有這些值相乘的結果不得溢位 Int32 。
適用於
VectorDataViewType(PrimitiveDataViewType, Int32)
建構新的單一維度向量類型。
public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, int size = 0);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * int -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, Optional size As Integer = 0)
參數
- itemType
- PrimitiveDataViewType
向量中包含的專案類型。
- size
- Int32
單一維度的大小。
適用於
VectorDataViewType(PrimitiveDataViewType, Int32[])
建構潛在的多維度向量類型。
public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, params int[] dimensions);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * int[] -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, ParamArray dimensions As Integer())
參數
- itemType
- PrimitiveDataViewType
向量中包含的專案類型。
- dimensions
- Int32[]
維度。 請注意,就像 一樣 Dimensions ,所有非負值都必須是非空白。 此外,因為 Size 是 的 Dimensions 乘積,所以將所有這些值相乘的結果不得溢位 Int32 。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應