()
return Fn('Swish', lambda x: x * fastmath.expit(x))
r"""Returns a layer that computes the Swish function.

  .. math::
      f(x) = x \cdot \text{sigmoid}(x)
r"""Returns a layer that computes the Swish function.
r Returns a layer that computes the Swish function .
def Swish():
  r"""Returns a layer that computes the Swish function.

  .. math::
      f(x) = x \cdot \text{sigmoid}(x)
  """
  return Fn('Swish', lambda x: x * fastmath.expit(x))
def Swish ( ) : return Fn ( 'Swish' , lambda x : x * fastmath . expit ( x ) )