而torch.tensor()则会根据输入数据类型生成相应的torch.LongTensor、torch.FloatTensor和torch.DoubleTensor。 当然,我们也可以通过numpy()把Tensor转换 ...
確定! 回上一頁