giagrad.Tensor.normal#

Tensor.normal(mu=0.0, std=1.0) Tensor[source]#

Fills tensor data with values drawn from the normal distribution \(\mathcal{N}(\text{mu}, \text{std}^2)\).

Parameters:
  • mu (float) – Mean of the normal distribution.

  • std (float) – The standard deviation of the normal distribution.

Examples

>>> Tensor.empty(3, 3).normal()