import torch tensor = torch.randn(2, 2) print(tensor.type()) # torch.long() 将tensor转换为long类型 long_tensor = tensor.long() ...
確定! 回上一頁