normal_¶
dragon.vm.torch.nn.init.
normal_
(
tensor,
mean=0,
std=1
)[source]¶Fill tensor from a normal distribution.
\[\text{tensor} \sim \mathcal{N}(\mu, \sigma^{2}) \]- Parameters:
- tensor (dragon.vm.torch.Tensor) – The input tensor.
- mean (number, optional, default=0) – The value to \(\mu\).
- std (number, optional, default=1) – The value to \(\sigma\).
- Returns:
dragon.vm.torch.Tensor – The output tensor.