nvidia.dali.experimental.dynamic.random.normal#

nvidia.dali.experimental.dynamic.random.normal(
shape_like=None,
/,
*,
batch_size=None,
device=None,
dtype=None,
mean=None,
seed=None,
shape=None,
stddev=None,
rng=None,
)#

Generates random numbers following a normal distribution.

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
  • ‘cpu’

  • ‘gpu’

Parameters:

shape_like (Tensor/Batch, optional) – Shape of this input will be used to infer the shape of the output, if provided.

Keyword Arguments:
  • dtype (nvidia.dali.types.DALIDataType, optional) –

    Output data type.

    Note

    The generated numbers are converted to the output data type, rounding and clamping if necessary.

  • mean (float or Tensor/Batch of float, optional, default = 0.0) – Mean of the distribution.

  • shape (int or list of int or Tensor/Batch of int, optional) – Shape of the output data.

  • stddev (float or Tensor/Batch of float, optional, default = 1.0) – Standard deviation of the distribution.

  • rng (RNG, optional) – A random number generator instance. Can be obtained by calling nvidia.dali.experimental.dynamic.random.RNG(seed)(). If not provided, the default RNG is used.