I was reading the documentation 9 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?
for context:

Packs a Tensor containing padded sequences of variable length.
input  can be of size  T x B x *  where T is the length of the longest sequence (equal to  lengths[0] ),  B  is the batch size, and  *  is any number of dimensions (including 0). If  batch_first  is  True ,  B x T x *   input  is expected.
For unsorted sequences, use enforce_sorted = False. If  enforce_sorted  is  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 pad_sequence https://pytorch.org/docs/stable/nn.html#torch.nn.utils.rnn.pad_sequence 1