Langue

BasicLayer Constructeur

Définition

Initialise une nouvelle instance de la classe BasicLayer.

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)

Paramètres

inChannels
Int32

Canaux d’entrée.

outChannels
Int32

Canaux de sortie.

depth
Int32

Nombre de blocs.

numHeads
Int32

Nombre de têtes.

windowSize
Int32

Taille de la fenêtre.

mlpRatio
Double

Ratio de MLP.

dropRatio
Double

Rapport de chute.

localConvSize
Int32

Taille de la convolution locale.

useShiftWindow
Boolean

Indique si vous utilisez la fenêtre maj.

useInterpolate
Boolean

Indique si l’interpolation est utilisée.

S’applique à