Skip to content

Commit

Permalink
Update lstm.py
Browse files Browse the repository at this point in the history
Fix original issue huggingface#34
  • Loading branch information
MikhailKazekin authored Jun 19, 2020
1 parent 198f7d4 commit 9771c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmoji/lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def reset_parameters(self):
def forward(self, input, hx=None):
is_packed = isinstance(input, PackedSequence)
if is_packed:
input, batch_sizes = input
input, batch_sizes, _, _ = input
max_batch_size = batch_sizes[0]
else:
batch_sizes = None
Expand Down

0 comments on commit 9771c88

Please sign in to comment.