BasicLayer Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the BasicLayer class.
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)
Parameters
- inChannels
- Int32
The input channels.
- outChannels
- Int32
The output channels.
- depth
- Int32
The number of blocks.
- numHeads
- Int32
The number of heads.
- windowSize
- Int32
The size of window.
- mlpRatio
- Double
The ratio of MLP.
- dropRatio
- Double
The ratio of drop.
- localConvSize
- Int32
The size of local convolution.
- useShiftWindow
- Boolean
Whether use shift window.
- useInterpolate
- Boolean
Whether use interpolation.