x = torch.randn(2, 3) y = torch.randn(2, 3) # concat x and y result = torch.cat((x, y), 0)
torch.cat(tensors, dim) #torch.cat((tensor1, tensor2, ...), 0) concatenates axis 0