torch_frac {torch} | R Documentation |
Frac
Description
Frac
Usage
torch_frac(self)
Arguments
self |
the input tensor. |
frac(input, out=NULL) -> Tensor
Computes the fractional portion of each element in input
.
Examples
if (torch_is_installed()) {
torch_frac(torch_tensor(c(1, 2.5, -3.2)))
}
[Package torch version 0.13.0 Index]