megengine.module.init.normal_

normal_(tensor, mean=0.0, std=1.0)[source]

Fills the given tensor with random value sampled from normal distribution \(\mathcal{N}(\text{mean}, \text{std}^2)\).

Parameters
  • tensor (Tensor) – tensor to be initialized.

  • mean (float) – mean of the normal distribution.

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

Return type

None