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