Compartir a través de


AutoFormerV2Block Constructor

Definición

Inicializa una nueva instancia de la clase AutoFormerV2Block.

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)

Parámetros

inChannels
Int32

Canales de entrada.

numHeads
Int32

Número de bloques.

windowSize
Int32

Tamaño de la ventana.

shiftSize
Int32

Tamaño del desplazamiento.

mlpRatio
Double

Proporción de MLP.

dropRatio
Double

Proporción de caída.

localConvSize
Int32

Tamaño de la convolución local.

useShiftWindow
Boolean

Indica si usa la ventana mayús.

useInterpolate
Boolean

Indica si usa la interpolación.

Se aplica a