I was reading the documentation and I came across the following sentence:
- is any number of trailing dimensions, including none.
what is the meaning of “trailing dimensions”? May I also get an example to clarify the point?
Packs a Tensor containing padded sequences of variable length.
inputcan be of size
T x B x *where T is the length of the longest sequence (equal to
Bis the batch size, and
*is any number of dimensions (including 0). If
B x T x *
For unsorted sequences, use enforce_sorted = False. If
True, the sequences should be sorted by length in a decreasing order, i.e.
input[:,0]should be the longest sequence, and
input[:,B-1]the shortest one. enforce_sorted = True is only necessary for ONNX export.
I actually meant to ask about