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
#> -0.8339 -1.5468 0.8811 -0.0662 0.8154
#> -0.0875 -0.3226 0.7118 -0.1362 1.7940
#> -1.6389 -0.8394 0.6512 1.2156 -0.4081
#> [ CPUFloatType{3,5} ]