Skip to content

LinearNN

LinearNN(sizes, activation=nn.ELU())

Bases: Module

Single linear map parameterized by a matrix B.

Parameters:

  • sizes (list of int) –

    Two entries [in_dim, out_dim].

  • activation (Module, default: torch.nn.ELU() ) –

    Kept for API compatibility.