| 30 | |
| 31 | |
| 32 | class MLP(Module): |
| 33 | def __init__(self): |
| 34 | super().__init__() |
| 35 | self.dense0 = Linear(28, 50) |
| 36 | self.dense1 = Linear(50, 20) |
| 37 | |
| 38 | def forward(self, x): |
| 39 | x = self.dense0(x) |
| 40 | x = F.relu(x) |
| 41 | x = self.dense1(x) |
| 42 | return x |
| 43 | |
| 44 | |
| 45 | class MyModule(Module): |
no outgoing calls