(self, x)
| 41 | self.l2 = layer.Linear(2) |
| 42 | |
| 43 | def forward(self, x): |
| 44 | y = self.lstm(x) |
| 45 | y = autograd.reshape(y, (y.shape[0], -1)) |
| 46 | y = self.l1(y) |
| 47 | y = autograd.relu(y) |
| 48 | y = self.l2(y) |
| 49 | return y |
| 50 | |
| 51 | def train_one_batch(self, x, y): |
| 52 | out = self.forward(x) |
no test coverage detected