Share via


MLP(Int32, Nullable<Int32>, Nullable<Int32>, Double) Constructor

Definition

Initializes a new instance of the MLP class.

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)

Parameters

inFeatures
Int32

The input channels of features.

hiddenFeatures
Nullable<Int32>

The hidden layer channels of features.

outFeatures
Nullable<Int32>

The output channels of features.

dropRatio
Double

The drop ratio.

Applies to