(self)
| 179 | self.hidden = self.init_hidden() |
| 180 | |
| 181 | def init_hidden(self): |
| 182 | return (torch.randn(2, 1, self.hidden_dim // 2), |
| 183 | torch.randn(2, 1, self.hidden_dim // 2)) |
| 184 | |
| 185 | def _forward_alg(self, feats): |
| 186 | # Do the forward algorithm to compute the partition function |
no outgoing calls
no test coverage detected