Skip to content

Commit

Permalink
!50 fix missing batch_size
Browse files Browse the repository at this point in the history
Merge pull request !50 from 吕昱峰(Nate.River)/master
  • Loading branch information
it-is-a-robot authored and gitee-org committed Dec 27, 2021
2 parents 7810173 + dedadb7 commit d25e0f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapter06/lstm/src/lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def __init__(self,
num_layers,
bidirectional,
num_classes,
weight):
weight,
batch_size):
super(SentimentNet, self).__init__()
# Map words to vectors
self.embedding = nn.Embedding(vocab_size,
Expand Down

0 comments on commit d25e0f3

Please sign in to comment.