torch.Longtensor是什么?和torch.Tensor有什么区别?

torch.longtensor和torch.tensor的差别在于:

torch.FloatTensor是32位浮点类型数据,torch.LongTensor是64位整型

torch.tensor是一个类,用于生成一个单精度浮点类型的张量。

张量就是:http://t.csdn.cn/R9KWT

你可能感兴趣的:(大数据)