Skip to content

Commit a8e6610

Browse files
BenFieldingsoumith
authored andcommitted
Fix argument typo in pad_packed_sequence docstring (pytorch#1300)
1 parent a35f507 commit a8e6610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/nn/utils/rnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def pad_packed_sequence(sequence, batch_first=False):
8989
It is an inverse operation to :func:`pack_padded_sequence`.
9090
9191
The returned Variable's data will be of size TxBx*, where T is the length
92-
of the longest sequence and B is the batch size. If ``batch_size`` is True,
92+
of the longest sequence and B is the batch size. If ``batch_first`` is True,
9393
the data will be transposed into BxTx* format.
9494
9595
Batch elements will be ordered decreasingly by their length.

0 commit comments

Comments
 (0)