# Example 3 ip_tensor_1=torch.tensor([[1,2,3],[4,5,6]]) ip_tensor_2=torch.tensor([[7,8,9,10],[11,12,13,14]]) torch.cat((ip_tensor_1,ip_tensor_2),dim=0) # Output --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) in () 3 ip_tensor_2=torch.tensor([[7,8,9,10],[11,12,13,14]]) 4 ----> 5 torch.cat((ip_tensor_1,ip_tensor_2),dim=0) RuntimeError: Sizes of tensors must match except in dimension 0. Got 3 and 4 in dimension 1 (The offending index is 1)