一个torch.Storage是一个单一数据类型的连续一维数组。 每个torch.Tensor都有一个对应的、相同数据类型的存储:class torch.FloatStorage 1 torch.Storage类型 import torch torch.FloatStorage([1,2,3,4,5]) torch.ByteStorage([1,2,3,4,5]) torch.ShortStorage([1,2,3,4,5]) torch.IntStorage([1,2