function tanh_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "tanh", "float32");
    const inputs = {
        x: $x
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Tanh), inputs);
}
Computes hyperbolic tangent of the input `tf.Tensor` element-wise: `tanh(x)`

```js
const x = tf.tensor1d([0, 1, -1, 70]);

x.tanh().print();  // or tf.tanh(x)
```
@param x The input tensor.

@doc {heading: 'Operations', subheading: 'Basic math'}