torch.randperm(n):将0~n-1(包括0和n-1)随机打乱后获得的数字序列,函数名是random permutation缩小【sample】 torch.randperm(10)===> tensor([2, 3, 6, 7, 8, 9, ...
確定! 回上一頁