Skip to content

Commit 3ce09b1

Browse files
committed
fix bug
1 parent 4ba7f14 commit 3ce09b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

06-Natural Language Process/seq-lstm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, n_char, char_dim, char_hidden):
3434
def forward(self, x):
3535
x = self.char_embedding(x)
3636
_, h = self.char_lstm(x)
37-
return h[1]
37+
return h[0]
3838

3939

4040
class LSTMTagger(nn.Module):

0 commit comments

Comments
 (0)