torch.
frac
Computes the fractional portion of each element in input.
input
Example:
>>> torch.frac(torch.tensor([1, 2.5, -3.2])) tensor([ 0.0000, 0.5000, -0.2000])
此页内容是否对您有帮助
感谢反馈!