共用方式為


AutoFormerV2Backbone 建構函式

定義

初始化 AutoFormerV2Backbone 類別的新執行個體。

public AutoFormerV2Backbone (int inChannels = 3, System.Collections.Generic.List<int> embedChannels = default, System.Collections.Generic.List<int> depths = default, System.Collections.Generic.List<int> numHeads = default, System.Collections.Generic.List<int> windowSizes = default, double mlpRatio = 4, double dropRate = 0, double mbconvExpandRatio = 4, System.Collections.Generic.List<int> outIndices = default, bool useShiftWindow = true, bool useInterpolate = false, System.Collections.Generic.List<int> outChannels = default);
new Microsoft.ML.TorchSharp.AutoFormerV2.AutoFormerV2Backbone : int * System.Collections.Generic.List<int> * System.Collections.Generic.List<int> * System.Collections.Generic.List<int> * System.Collections.Generic.List<int> * double * double * double * System.Collections.Generic.List<int> * bool * bool * System.Collections.Generic.List<int> -> Microsoft.ML.TorchSharp.AutoFormerV2.AutoFormerV2Backbone
Public Sub New (Optional inChannels As Integer = 3, Optional embedChannels As List(Of Integer) = Nothing, Optional depths As List(Of Integer) = Nothing, Optional numHeads As List(Of Integer) = Nothing, Optional windowSizes As List(Of Integer) = Nothing, Optional mlpRatio As Double = 4, Optional dropRate As Double = 0, Optional mbconvExpandRatio As Double = 4, Optional outIndices As List(Of Integer) = Nothing, Optional useShiftWindow As Boolean = true, Optional useInterpolate As Boolean = false, Optional outChannels As List(Of Integer) = Nothing)

參數

inChannels
Int32

輸入通道。

embedChannels
List<Int32>

內嵌通道。

depths
List<Int32>

每個圖層中的區塊數目。

numHeads
List<Int32>

BasicLayer 中的頭部數目。

windowSizes
List<Int32>

視窗的大小。

mlpRatio
Double

MLP 的比例。

dropRate
Double

下降的比例。

mbconvExpandRatio
Double

MBConv 的展開比例。

outIndices
List<Int32>

輸出的索引。

useShiftWindow
Boolean

是否使用Shift視窗。

useInterpolate
Boolean

是否使用插補。

outChannels
List<Int32>

每個輸出的通道。

適用於