Thanks. I did this in the same version,
torch.LongTensor(output_class[get_ans])
Iam getting Variable containing:[torch.LongTensor with no dimension]
output of
output_class[get_ans] is 0
When I convert 0 to longtensor it shows no dimension