(sequence of Tensors) any python sequence of tensors of the same type. Non-empty tensors provided must have the same shape, except in the cat dimension.
dim
(int, optional) the dimension over which the tensors are concatenated
out
(Tensor, optional) the output tensor.
cat(tensors, dim=0, out=None) -> Tensor
Concatenates the given sequence of seq tensors in the given dimension.
All tensors must either have the same shape (except in the concatenating
dimension) or be empty.