Append a tensor vector to tensor matrix
I have a tensor matrix that i simply want to append a tensor vector as another column to it.
For example:
    X = torch.randint(100, (100,5))
    x1 = torch.from_numpy(np.array(range(0, 100)))

I've tried torch.cat([x1, X) with various numbers for both axis and dim but it always says that the dimensions don't match.

You can also use torch.hstack to combine and unsqueeze for reshape x1
torch.hstack([X, x1.unsqueeze(1)])

