Good morning,
You could use

torch.cat((x,y),1)

as in

import torch
import numpy as np
a = [[1,2],[5,6]]
b = [[3,4],[7,8]]
x  = torch.from_numpy(np.array(a))
y = torch.from_numpy(np.array(b))
u = torch.cat((x,y),1)
print(u)