I get a 1-D IntTensor,but i want to convert it to a integer. I try it by this method:
print(dictionary[IntTensor.int()])
but got an error:
torch.tensor('variable',dtype=torch.int8)
try this