Fills the input Tensor with values drawn from a truncated normal distribution.
Examples
if (torch_is_installed()) {
w <- torch_empty(3, 5)
nn_init_trunc_normal_(w)
}
#> torch_tensor
#> 1.8168 -0.6190 1.3776 -0.6168 0.0281
#> -1.3362 1.0592 -0.3194 -0.1106 0.8847
#> -0.0672 -1.4283 0.8746 0.2834 -1.7215
#> [ CPUFloatType{3,5} ]