(self)
| 50 | |
| 51 | class XORNet(Module): |
| 52 | def __init__(self): |
| 53 | self.mid_layers = 14 |
| 54 | self.num_class = 2 |
| 55 | super().__init__() |
| 56 | |
| 57 | self.fc0 = Linear(self.num_class, self.mid_layers, bias=True) |
| 58 | self.fc1 = Linear(self.mid_layers, self.mid_layers, bias=True) |
| 59 | |
| 60 | self.fc2 = Linear(self.mid_layers, self.num_class, bias=True) |
| 61 | |
| 62 | def forward(self, x): |
| 63 | x = self.fc0(x) |