Freigeben über


AutoFormerV2Block Konstruktor

Definition

Initialisiert eine neue Instanz der AutoFormerV2Block-Klasse.

public AutoFormerV2Block(int inChannels, int numHeads, int windowSize = 7, int shiftSize = 0, double mlpRatio = 4, double dropRatio = 0, int localConvSize = 3, bool useShiftWindow = false, bool useInterpolate = false);
new Microsoft.ML.TorchSharp.AutoFormerV2.AutoFormerV2Block : int * int * int * int * double * double * int * bool * bool -> Microsoft.ML.TorchSharp.AutoFormerV2.AutoFormerV2Block
Public Sub New (inChannels As Integer, numHeads As Integer, Optional windowSize As Integer = 7, Optional shiftSize As Integer = 0, Optional mlpRatio As Double = 4, Optional dropRatio As Double = 0, Optional localConvSize As Integer = 3, Optional useShiftWindow As Boolean = false, Optional useInterpolate As Boolean = false)

Parameter

inChannels
Int32

Die Eingabekanäle.

numHeads
Int32

Die Anzahl der Blöcke.

windowSize
Int32

Die Größe des Fensters.

shiftSize
Int32

Die Größe der Schicht.

mlpRatio
Double

Das Verhältnis von MLP.

dropRatio
Double

Das Drop-Verhältnis.

localConvSize
Int32

Die Größe der lokalen Faltung.

useShiftWindow
Boolean

Gibt an, ob das Umschaltfenster verwendet wird.

useInterpolate
Boolean

Gibt an, ob Interpolation verwendet wird.

Gilt für: