How to concatenate 2d tensors with 2 different dimensions

I was wondering if it is possible to concatenate two different pytorch tensors with different shapes. one tensor is of shape torch.Size([247, 247]) and the other is of shape torch.Size([10, 183]). Is it possible to concatenate these using torch.cat() on dim=1?

I don’t think it is possible.
Can you elaborate on your requirements that warrants this?

I fixed the error I had a wrong variable in place. Sorry for the trouble