When I declare:
x = Variable(torch.ones(2), requires_grad=False)
And then do : x[0]
I still get a tensor of size 1. Indexing further x[0][0] further leads to the same tensor. Is there a way to get the scalar element that is x[0]