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