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.3560 -0.4678 0.8668 0.6178 -0.6472
#> 1.0229 0.2751 -0.7472 1.6860 0.5638
#> 1.2977 0.8134 -0.0995 0.8243 -0.1895
#> [ CPUFloatType{3,5} ]