Sdílet prostřednictvím


BasicLayer Konstruktor

Definice

Inicializuje novou instanci BasicLayer třídy .

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

Vstupní kanály.

outChannels
Int32

Výstupní kanály.

depth
Int32

Počet bloků

numHeads
Int32

Počet hlav.

windowSize
Int32

Velikost okna

mlpRatio
Double

Poměr MLP.

dropRatio
Double

Poměr poklesu.

localConvSize
Int32

Velikost místní konvoluce.

useShiftWindow
Boolean

Určuje, jestli používáte okno posunu.

useInterpolate
Boolean

Jestli se používá interpolace.

Platí pro