MLP(Int32, Nullable<Int32>, Nullable<Int32>, Double) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
特征的输入通道。
- dropRatio
- Double
下降比率。