总说 简要记录一下pytorch中的坑 LongTensor(IntTensor)和float数字操作,直接变成0! 坑1: long tensor的bug? import torch a = (torch.rand(3,4)*10).long() print(a