(self, line_tensor)
| 247 | self.softmax = nn.LogSoftmax(dim=1) |
| 248 | |
| 249 | def forward(self, line_tensor): |
| 250 | rnn_out, hidden = self.rnn(line_tensor) |
| 251 | output = self.h2o(hidden[0]) |
| 252 | output = self.softmax(output) |
| 253 | |
| 254 | return output |
| 255 | |
| 256 | |
| 257 | ########################### |