Delen via


ConvModule(Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean) Constructor

Definition

Initializes a new instance of the ConvModule class.

public ConvModule (int inChannel, int outChannel, int kernelSize, int stride = 1, int padding = 0, int dilation = 1, bool bias = true, bool useRelu = true);
new Microsoft.ML.TorchSharp.AutoFormerV2.ConvModule : int * int * int * int * int * int * bool * bool -> Microsoft.ML.TorchSharp.AutoFormerV2.ConvModule
Public Sub New (inChannel As Integer, outChannel As Integer, kernelSize As Integer, Optional stride As Integer = 1, Optional padding As Integer = 0, Optional dilation As Integer = 1, Optional bias As Boolean = true, Optional useRelu As Boolean = true)

Parameters

inChannel
Int32

The input channels of convolution layer.

outChannel
Int32

The output channels of convolution layer.

kernelSize
Int32

The kernel size of convolution layer.

stride
Int32

The stride of convolution layer.

padding
Int32

The padding of convolution layer.

dilation
Int32

The dilation of convolution layer.

bias
Boolean

The bias of convolution layer.

useRelu
Boolean

Whether use Relu activation function.

Applies to