nvidia.dali.fn.batch_permutation — NVIDIA DALI (original) (raw)
nvidia.dali.fn.batch_permutation(*, allow_repetitions=False, bytes_per_sample_hint=[0], no_fixed_points=False, preserve=False, seed=-1, device=None, name=None)#
Produces a batch of random integers which can be used as indices for indexing samples in the batch.
Supported backends
- ‘cpu’
Keyword Arguments:
- allow_repetitions¶ (bool, optional, default = False) – If true, the output can contain repetitions and omissions.
- bytes_per_sample_hint¶ (int or list of int, optional, default = [0]) –
Output size hint, in bytes per sample.
If specified, the operator’s outputs residing in GPU or page-locked host memory will be preallocated to accommodate a batch of samples of this size. - no_fixed_points¶ (bool, optional, default = False) – If true, the the output permutation cannot contain fixed points, that is
out[i] != i
. This argument is ignored when batch size is 1. - preserve¶ (bool, optional, default = False) – Prevents the operator from being removed from the graph even if its outputs are not used.
- seed¶ (int, optional, default = -1) – Random seed; if not set, one will be assigned automatically.