Computes hyperbolic tangent of the input tf.Tensor element-wise: tanh(x)
tf.Tensor
tanh(x)
const x = tf.tensor1d([0, 1, -1, 70]);x.tanh().print(); // or tf.tanh(x) Copy
const x = tf.tensor1d([0, 1, -1, 70]);x.tanh().print(); // or tf.tanh(x)
The input tensor.
Generated using TypeDoc
Computes hyperbolic tangent of the input
tf.Tensor
element-wise:tanh(x)