torch.cat — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.cat () can be seen as an inverse operation for torch.split () and torch.chunk (). torch.cat () can be best understood via examples. tensors ( 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. out ( Tensor, optional) – the output tensor.