Uniform

class dragon.vm.dali.ops.Uniform(
  range=- 1.0, 1.0,
  **kwargs
)[source]

Sample values from an uniform distribution.

Examples:

uniform_rng = dali.ops.Uniform((0., 1.))
value = uniform_rng()

__new__

static Uniform.__new__(
  cls,
  range=- 1.0, 1.0,
  **kwargs
)[source]

Create an Uniform operator.

Parameters:
  • range (Tuple[float, float], optional) – The lower and upper bound of distribution.
Returns:

nvidia.dali.ops.Uniform – The operator.