共用方式為


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

捲積層的 dilation。

bias
Boolean

捲積層的偏差。

useRelu
Boolean

是否使用 Relu activation 函式。

適用於