给定参数 n ,返回一个从 0 到 n -1 的随机整数排列。 参数: n (int) – 上边界(不包含). 例子: >>> torch.randperm(4) 2 1 3 0 [torch.LongTensor of size 4] ...
確定! 回上一頁