Frac
Examples
if (torch_is_installed()) {
torch_frac(torch_tensor(c(1, 2.5, -3.2)))
}
#> torch_tensor
#> 0.0000
#> 0.5000
#> -0.2000
#> [ CPUFloatType{3} ]
Frac
if (torch_is_installed()) {
torch_frac(torch_tensor(c(1, 2.5, -3.2)))
}
#> torch_tensor
#> 0.0000
#> 0.5000
#> -0.2000
#> [ CPUFloatType{3} ]