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