Share via


MLP Class

Definition

The MLP (Multilayer Perceptron) layer.

public class MLP : TorchSharp.torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
type MLP = class
    inherit torch.nn.Module<torch.Tensor, torch.Tensor>
Public Class MLP
Inherits torch.nn.Module(Of torch.Tensor, torch.Tensor)
Inheritance
torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
MLP

Constructors

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

Initializes a new instance of the MLP class.

Methods

forward(torch+Tensor) TorchSharp.torch.nn.Module`2.forward(TorchSharp.torch.Tensor)

Applies to