方法一 <tensor>.cpu().numpy() 把tensor转为ndarray 然后点击say as array 方法二 torch.set_printoptions(profile="full") print(x) # prints the whole tensor torch.set_printoptions(profile="default") # reset print(x) # prints the truncated tensor