permutation¶
dragon.random.
permutation
(
limit,
dtype='int64',
**kwargs
)[source]¶Return a tensor with value in the permuted range.
Set
limit
to determine a range \([0, \text{limit})\):x = dragon.random.permutation(4)
- Parameters:
- limit (Union[number, dragon.Tensor]) – The end of interval.
- dtype (str, optional, default='int64') – The optional data type.
- Returns:
dragon.Tensor – The output tensor.