- torch.cat(x,y,dim=0)
Concatinates tensors along the specified dimension.
The output tensor has same shape as input tensor except in dimension to be concatinated.
The input tensors must have same shape except the dimension in which concatination has to take place.
x= torch.randn(1,1,2,3)