()
return Fn('Relu', lambda x: jnp.where(x <= 0, jnp.zeros_like(x), x))
r"""Returns a layer that computes the Rectified Linear Unit (ReLU) function.

  .. math::
      f(x) = \left\{ \begin{array}{cl}
          0 & \text{if}\ x \leq 0, \\
          x & \text{otherwise}.
      \end{array} \right.
r"""Returns a layer that computes the Rectified Linear Unit (ReLU) function.
r Returns a layer that computes the Rectified Linear Unit ( ReLU ) function .
def Relu():
  r"""Returns a layer that computes the Rectified Linear Unit (ReLU) function.

  .. math::
      f(x) = \left\{ \begin{array}{cl}
          0 & \text{if}\ x \leq 0, \\
          x & \text{otherwise}.
      \end{array} \right.
  """
  return Fn('Relu', lambda x: jnp.where(x <= 0, jnp.zeros_like(x), x))
def Relu ( ) : return Fn ( 'Relu' , lambda x : jnp . where ( x <= 0 , jnp . zeros_like ( x ) , x ) )