nvidia.dali.fn.random.uniform — NVIDIA DALI (original) (raw)

nvidia.dali.fn.random.uniform(__shape_like=None, /, *, bytes_per_sample_hint=[0], dtype=None, preserve=False, range=[-1.0, 1.0], seed=-1, shape=None, values=None, device=None, name=None)#

Generates random numbers following a uniform distribution.

It can be configured to produce a continuous uniform distribution in the range [min, max), or a discrete uniform distribution where any of the specified values [v0, v1, …, vn] occur with equal probability.

The shape of the generated data can be either specified explicitly with a shape argument, or chosen to match the shape of the __shape_like input, if provided. If none are present, a single value per sample is generated.

Supported backends

Parameters:

__shape_like (TensorList , optional) – Shape of this input will be used to infer the shape of the output, if provided.

Keyword Arguments: