mindspore.ops.RandpermV2

class mindspore.ops.RandpermV2(seed=0, offset=0, dtype=mstype.int64)[源代码]
prim = ops.RandpermV2(seed, offset, dtype)
out = prim(n)

等价于

ops.randperm(n, seed, offset, dtype)

更多详情请查看: mindspore.ops.randperm()