Xavier uniform initialization
Fills the input Tensor with values according to the method described in Understanding the difficulty of training deep feedforward neuralnetworks - Glorot, X. & Bengio, Y. (2010), using a uniform distribution.
Tensor
Understanding the difficulty of training deep feedforward neuralnetworks
nn_init_xavier_uniform_(tensor, gain = 1)
tensor
gain
if (torch_is_installed()) { w <- torch_empty(3, 5) nn_init_xavier_uniform_(w) }
Useful links