Inplace version of frac API, the output Tensor will be inplaced with input x. Please refer to frac.
frac
x