MLP 类

定义

MLP (多层感知器) 层。

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)
继承
torch.nn.Module<TorchSharp.torch.Tensor,TorchSharp.torch.Tensor>
MLP

构造函数

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

初始化 MLP 类的新实例。

方法

forward(torch+Tensor)

MLP (多层感知器) 层。

适用于