Could you tell me, where you have found the init.py defining cat?
Also, could you try to run the following code:
a = torch.randn(10, 2)
b = torch.randn(2, 2)

c = torch.cat((a, b), dim=0)

and post the result?