(self, bow_vec)
| 274 | # to worry about that here |
| 275 | |
| 276 | def forward(self, bow_vec): |
| 277 | # Pass the input through the linear layer, |
| 278 | # then pass that through log_softmax. |
| 279 | # Many non-linearities and other functions are in torch.nn.functional |
| 280 | return F.log_softmax(self.linear(bow_vec), dim=1) |
| 281 | |
| 282 | |
| 283 | def make_bow_vector(sentence, word_to_ix): |
nothing calls this directly
no outgoing calls
no test coverage detected