()
return Fn('Tanh', lambda x: jnp.tanh(x))
r"""Returns a layer that computes the hyperbolic tangent function.

  .. math::
      f(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}
r"""Returns a layer that computes the hyperbolic tangent function.
r Returns a layer that computes the hyperbolic tangent function .
def Tanh():
  r"""Returns a layer that computes the hyperbolic tangent function.

  .. math::
      f(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}
  """
  return Fn('Tanh', lambda x: jnp.tanh(x))
def Tanh ( ) : return Fn ( 'Tanh' , lambda x : jnp . tanh ( x ) )