如何将1-D IntTensor转换为整数?这样做:IntTensor.int() 引发错误:KeyError: Variable containing: 423 [torch.IntTensor of size 1]