MLP(Int32, Nullable<Int32>, Nullable<Int32>, Double) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- dropRatio
- Double
The drop ratio.