if I have 2 tensors like :
x = torch.rand(3, 4)
y = torch.rand(3, 7)
how can I combine them along the second axis so I get a new tensor of size 3,11 ?
I thought cat would do this, but it doesnt, I didnt see what function would do this.
if I have 2 tensors like :
x = torch.rand(3, 4)
y = torch.rand(3, 7)
how can I combine them along the second axis so I get a new tensor of size 3,11 ?
I thought cat would do this, but it doesnt, I didnt see what function would do this.
z = torch.cat([x,y],1)