Lets say, I have a tensor
a = torch.tensor([[0.1, 1.2], [2.2, 3.1], [4.9, 5.2]])
the size of it is torch.Size([3, 2])
I want to resize it to torch.Size([3, 3]) by adding a 0 to each row. Like this,
torch.tensor([[0.1, 1.2, 0], [2.2, 3.1, 0], [4.9, 5.2, 0]])
How can I resize and add a 0?