ConvModule(Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean) 构造函数

定义

初始化 ConvModule 类的新实例。

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)

参数

inChannel
Int32

卷积层的输入通道。

outChannel
Int32

卷积层的输出通道。

kernelSize
Int32

卷积层的内核大小。

stride
Int32

卷积层的步长。

padding
Int32

卷积层的填充。

dilation
Int32

卷积层的扩张。

bias
Boolean

卷积层的偏差。

useRelu
Boolean

是否使用 Relu 激活函数。

适用于