
Last chance! 50% off unlimited learning
Sale ends in
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 uniform
distribution.
nn_init_xavier_uniform_(tensor, gain = 1)
an n-dimensional Tensor
an optional scaling factor
# NOT RUN {
if (torch_is_installed()) {
w <- torch_empty(3, 5)
nn_init_xavier_uniform_(w)
}
# }
Run the code above in your browser using DataLab