You can use unsqueeze to add another dimension, after which you can use expand:
a = torch.Tensor([[0,1,2],[3,4,5],[6,7,8]])
a.unsqueeze_(-1)
a = a.expand(3,3,10)

This will give a tensor of shape 3x3x10. With transpose you can swap two dimensions. For example, we can swap the first with the third dimension to get a tensor of shape 10x3x3:
a = a.transpose(2, 0)