TanhΒΆ

In-place version of Tanh.

Abstract Signature:

Tanh_(input: Tensor)

PyTorch

API: torch.tanh_
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.tanh
Strategy: Direct Mapping

NumPy

API: numpy.tanh
Strategy: Direct Mapping

Keras

API: keras.ops.tanh
Strategy: Direct Mapping

TensorFlow

API: tf.math.tanh
Strategy: Direct Mapping

Apple MLX

API: mlx.core.tanh
Strategy: Direct Mapping