Sqrt
Examples
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_sqrt(a)
}
#> torch_tensor
#> nan
#> 0.9917
#> nan
#> 0.3907
#> [ CPUFloatType{4} ]
Sqrt
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_sqrt(a)
}
#> torch_tensor
#> nan
#> 0.9917
#> nan
#> 0.3907
#> [ CPUFloatType{4} ]