We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba7f14 commit 3ce09b1Copy full SHA for 3ce09b1
06-Natural Language Process/seq-lstm.py
@@ -34,7 +34,7 @@ def __init__(self, n_char, char_dim, char_hidden):
34
def forward(self, x):
35
x = self.char_embedding(x)
36
_, h = self.char_lstm(x)
37
- return h[1]
+ return h[0]
38
39
40
class LSTMTagger(nn.Module):
0 commit comments