Xavier normal initialization
Fills the input Tensor
with values according to the method
described in Understanding the difficulty of training deep feedforward neural networks
- Glorot, X. & Bengio, Y. (2010), using a normal
distribution.
nn_init_xavier_normal_(tensor, gain = 1)
tensor |
an n-dimensional |
gain |
an optional scaling factor |
if (torch_is_installed()) { w <- torch_empty(3, 5) nn_init_xavier_normal_(w) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.