MCPcopy Create free account
hub / github.com/pytorch/tutorials / __init__

Method __init__

intermediate_source/ensembling.py:32–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30# Here's a simple MLP
31class SimpleMLP(nn.Module):
32 def __init__(self):
33 super(SimpleMLP, self).__init__()
34 self.fc1 = nn.Linear(784, 128)
35 self.fc2 = nn.Linear(128, 128)
36 self.fc3 = nn.Linear(128, 10)
37
38 def forward(self, x):
39 x = x.flatten(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected