MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / forward

Method forward

training/mlp_train.py:57–59  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

55 self.net = nn.Sequential(*layers)
56
57 def forward(self, x: torch.Tensor) -> torch.Tensor: # type: ignore[override]
58 x = x.view(x.size(0), -1)
59 return self.net(x)
60
61
62@dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected