Uniform

class dragon.vm.dali.ops.Uniform(
  range=(- 1.0, 1.0),
  dtype=None,
  **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),
  dtype=None,
  **kwargs
)[source]

Create an Uniform operator.

Parameters:
  • range (Tuple[float, float], optional) The lower and upper bound of distribution.
  • dtype (str, optional) The output data type.
Returns:

nvidia.dali.ops.random.Uniform The operator.