File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -285,10 +285,10 @@ def pack_padded_sequence(
285
285
) -> PackedSequence :
286
286
r"""Packs a Tensor containing padded sequences of variable length.
287
287
288
- :attr:`input` can be of size ``T x B x *`` where ``T`` is the length of the
289
- longest sequence, ``B`` is the batch size, and ``* `` is any number of dimensions
290
- (including 0). If :attr:`batch_first` is ``False``, ``T x B x *`` :attr:`input ` is expected,
291
- ``B x T x *`` otherwise .
288
+ :attr:`input` can be of size ``T x B x *`` (if :attr:`batch_first` is ``False``)
289
+ or ``B x T x * `` (if :attr:`batch_first` is ``True``) where ``T `` is the length
290
+ of the longest sequence, ``B`` is the batch size, and ``*` ` is any number of dimensions
291
+ (including 0) .
292
292
293
293
For unsorted sequences, use `enforce_sorted = False`. If :attr:`enforce_sorted` is
294
294
``True``, the sequences should be sorted by length in a decreasing order, i.e.
You can’t perform that action at this time.
0 commit comments