Skip to content

Commit

Permalink
fix output shape comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshTrivedi committed Feb 9, 2019
1 parent 5622019 commit db96a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ output, input_sizes = pad_packed_sequence(packed_output, batch_first=True)
# [ 0. 0. 0. 0. 0. ] <pad>
# [ 0. 0. 0. 0. 0. ] <pad>
# [ 0. 0. 0. 0. 0. ]]] <pad>
# output.shape : ( batch_size X max_seq_len X hidden_dim) = (3 X 18 X 4)
# output.shape : ( batch_size X max_seq_len X hidden_dim) = (3 X 8 X 5)

# Or if you just want the final hidden state?
print(ht[-1])
Expand Down
2 changes: 1 addition & 1 deletion pad_packed_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
# [ 0. 0. 0. 0. 0. ] <pad>
# [ 0. 0. 0. 0. 0. ] <pad>
# [ 0. 0. 0. 0. 0. ]]] <pad>
# output.shape : ( batch_size X max_seq_len X hidden_dim) = (3 X 18 X 4)
# output.shape : ( batch_size X max_seq_len X hidden_dim) = (3 X 8 X 5)

# Or if you just want the final hidden state?
print(ht[-1])
Expand Down

0 comments on commit db96a0b

Please sign in to comment.