ConvModule(Int32, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 函式。