(a=1.)
return Fn('ParametricRelu', lambda x: jnp.maximum(a * x, jnp.zeros_like(x)))
r"""Returns a layer that computes a ReLU function with the given slope.

  .. math::
      f(x) = \left\{ \begin{array}{cl}
          0  & \text{if}\ x \leq 0, \\
          ax & \text{otherwise}.
      \end{array} \right.

  Args:
    a: Slope of line for positive inputs.
r"""Returns a layer that computes a ReLU function with the given slope.
r Returns a layer that computes a ReLU function with the given slope .
def ParametricRelu(a=1.):
  r"""Returns a layer that computes a ReLU function with the given slope.

  .. math::
      f(x) = \left\{ \begin{array}{cl}
          0  & \text{if}\ x \leq 0, \\
          ax & \text{otherwise}.
      \end{array} \right.

  Args:
    a: Slope of line for positive inputs.
  """
  return Fn('ParametricRelu', lambda x: jnp.maximum(a * x, jnp.zeros_like(x)))
def ParametricRelu ( a = 1. ) : return Fn ( 'ParametricRelu' , lambda x : jnp . maximum ( a * x , jnp . zeros_like ( x ) ) )