Log1p
Note
This function is more accurate than torch_log for small
values of input
Examples
if (torch_is_installed()) {
a = torch_randn(c(5))
a
torch_log1p(a)
}
#> torch_tensor
#> 0.8401
#> 0.1982
#> 0.8343
#> nan
#> 0.2523
#> [ CPUFloatType{5} ]