(self, *x)
| 115 | self.linear = layer.Linear(in_dim, num_classes) |
| 116 | |
| 117 | def forward(self, *x): |
| 118 | y = super(MyModel, self).forward(*x, last_layers=self.last_layers)[0] |
| 119 | y = self.linear(y) |
| 120 | return y |
| 121 | |
| 122 | def train_one_batch(self, x, y, dist_option, spars): |
| 123 | out = self.forward(x) |