nn_init_xavier_uniform_ | R Documentation |
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)
tensor |
an n-dimensional |
gain |
an optional scaling factor |
if (torch_is_installed()) {
w <- torch_empty(3, 5)
nn_init_xavier_uniform_(w)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.