Skip to main content

//clika-runtime/io.clika.runtime/Ops/randperm

randperm

[common]
fun randperm(n: Tensor, dtype: DType = DType.INT64, device: Placement? = null): Tensor

randperm(n: Tensor, dtype: DType = DType.INT64, device: Placement? = null): the randperm operator. A random permutation of the integers 0 .. n-1.

[common]
fun randperm(n: Double, dtype: DType = DType.INT64, device: Placement? = null): Tensor

randperm(n: Double, dtype: DType = DType.INT64, device: Placement? = null): the number form of randperm, n as a scalar.