Freigeben über


AutoFormerV2Backbone Konstruktor

Definition

Initialisiert eine neue Instanz der AutoFormerV2Backbone-Klasse.

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)

Parameter

inChannels
Int32

Die Eingabekanäle.

embedChannels
List<Int32>

Die Einbettungskanäle.

depths
List<Int32>

Die Anzahl der Blöcke in jeder Ebene.

numHeads
List<Int32>

Die Anzahl der Köpfe in BasicLayer.

windowSizes
List<Int32>

Die Größe des Fensters.

mlpRatio
Double

Das Verhältnis von MLP.

dropRate
Double

Das Drop-Verhältnis.

mbconvExpandRatio
Double

Das Erweiterungsverhältnis von MBConv.

outIndices
List<Int32>

Die Indizes der Ausgabe.

useShiftWindow
Boolean

Gibt an, ob das Umschaltfenster verwendet wird.

useInterpolate
Boolean

Gibt an, ob Interpolation verwendet wird.

outChannels
List<Int32>

Die Kanäle der einzelnen Ausgaben.

Gilt für: