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

下降比率。

适用于