I have two Tensors of size [60,10] how do i concatenate them to get a Tensor of size[60,2,10]
Call x
and y
your tensors, you can use stack
:
torch.stack( (x,y), dim=1 )
Thanks Andrea:smile:
I have two Tensors of size [60,10] how do i concatenate them to get a Tensor of size[60,2,10]
Call x
and y
your tensors, you can use stack
:
torch.stack( (x,y), dim=1 )
Thanks Andrea:smile: