Normal initialization
Fills the input Tensor with values drawn from the normal distribution
nn_init_normal_(tensor, mean = 0, std = 1)
tensor
: an n-dimensional Tensormean
: the mean of the normal distributionstd
: the standard deviation of the normal distributionif (torch_is_installed()) { w <- torch_empty(3, 5) nn_init_normal_(w) }
Useful links