共用方式為


MLP(Int32, Nullable<Int32>, Nullable<Int32>, Double) 建構函式

定義

初始化 MLP 類別的新執行個體。

public MLP(int inFeatures, int? hiddenFeatures = default, int? outFeatures = default, double dropRatio = 0);
new Microsoft.ML.TorchSharp.AutoFormerV2.MLP : int * Nullable<int> * Nullable<int> * double -> Microsoft.ML.TorchSharp.AutoFormerV2.MLP
Public Sub New (inFeatures As Integer, Optional hiddenFeatures As Nullable(Of Integer) = Nothing, Optional outFeatures As Nullable(Of Integer) = Nothing, Optional dropRatio As Double = 0)

參數

inFeatures
Int32

特徵的輸入通道。

hiddenFeatures
Nullable<Int32>

特徵的隱藏層通道。

outFeatures
Nullable<Int32>

功能的輸出通道。

dropRatio
Double

下降比例。

適用於