Język

BasicLayer Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy 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)

Parametry

inChannels
Int32

Kanały wejściowe.

outChannels
Int32

Kanały wyjściowe.

depth
Int32

Liczba bloków.

numHeads
Int32

Liczba głów.

windowSize
Int32

Rozmiar okna.

mlpRatio
Double

Współczynnik MLP.

dropRatio
Double

Współczynnik spadku.

localConvSize
Int32

Rozmiar lokalnego splotu.

useShiftWindow
Boolean

Czy używać okna shift.

useInterpolate
Boolean

Czy używać interpolacji.

Dotyczy