th> y = torch.randperm(3 );th> y 3 2 1[torch.DoubleTensor of size 3]
现在,我想将y转换为Torch.LongTensor.我怎样才能做到这一点?