Add new elements to Pytorch tensor
I have a tensor that looks like this:

I would like to add 0 to each inner tensor. So we have something like[0.1111, 0.6667, 0].
Any suggestion would be appreciated.

You can do :
z = torch.zeros((10,1))
torch.cat((your_tensor,z),1)

