#randperm

randperm函数

  randperm功能是随机打乱一个数字序列。  语法格式:  y=torch.randperm(n)  y是把1到n这些数随机打乱得到的一个数字序列。 th>torch.randperm(5)31542[torch.DoubleTensorofsize5][0.0003s]th>torch.randpe...
代码星球 代码星球·2020-10-11