tf.math.tanh

Aliases:

  • tf.math.tanh
  • tf.nn.tanh
  • tf.tanh
tf.math.tanh(
    x,
    name=None
)

Defined in tensorflow/python/ops/math_ops.py.

Computes hyperbolic tangent of x element-wise.

Args:

  • x: A Tensor or SparseTensor with type float16, float32, double, complex64, or complex128.
  • name: A name for the operation (optional).

Returns:

A Tensor or SparseTensor respectively with the same type as x.