(self, input)
| 27 | self.embedding = nn.Linear(nHidden * 2, nOut) |
| 28 | |
| 29 | def forward(self, input): |
| 30 | recurrent, _ = self.rnn(input) |
| 31 | T, b, h = recurrent.size() |
| 32 | t_rec = recurrent.view(T * b, h) |
| 33 | |
| 34 | output = self.embedding(t_rec) # [T * b, nOut] |
| 35 | output = output.view(T, b, -1) |
| 36 | |
| 37 | return output |
| 38 | |
| 39 | class BidirectionalLSTM(nn.Module): |
| 40 |
nothing calls this directly
no outgoing calls
no test coverage detected