Freigeben über


BasicLayer Konstruktor

Definition

Initialisiert eine neue Instanz der BasicLayer-Klasse.

public BasicLayer(int inChannels, int outChannels, int depth, int numHeads, int windowSize, double mlpRatio = 4, double dropRatio = 0, int localConvSize = 3, bool useShiftWindow = false, bool useInterpolate = false);
new Microsoft.ML.TorchSharp.AutoFormerV2.BasicLayer : int * int * int * int * int * double * double * int * bool * bool -> Microsoft.ML.TorchSharp.AutoFormerV2.BasicLayer
Public Sub New (inChannels As Integer, outChannels As Integer, depth As Integer, numHeads As Integer, windowSize As Integer, 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.

outChannels
Int32

Die Ausgabekanäle.

depth
Int32

Die Anzahl der Blöcke.

numHeads
Int32

Die Anzahl der Köpfe.

windowSize
Int32

Die Größe des Fensters.

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: