参考:https://stackoverflow.com/questions/44738273/torch-how-to-shuffle... ... x = torch.arange(0, 10) print(x) b=torch.randperm(x.size(0)) ...
確定! 回上一頁