(self, x, y)
| 65 | return y |
| 66 | |
| 67 | def train_one_batch(self, x, y): |
| 68 | y_ = self.forward(x) |
| 69 | l = self.loss(y_, y) |
| 70 | self.optim(l) |
| 71 | return y_, l |
| 72 | |
| 73 | def loss(self, out, ty): |
| 74 | return autograd.softmax_cross_entropy(out, ty) |
no test coverage detected