
Last chance! 50% off unlimited learning
Sale ends in
Frac
torch_frac(self)
the input tensor.
Computes the fractional portion of each element in input
.
# NOT RUN {
if (torch_is_installed()) {
torch_frac(torch_tensor(c(1, 2.5, -3.2)))
}
# }
Run the code above in your browser using DataLab