parameters: (x, alpha=1.)
docstring: Exponential linear unit.
  
    Arguments:
        x: A tensor or variable to compute the activation function for.
        alpha: A scalar, slope of positive section.
  
    Returns:
        A tensor.
docstring_summary: Exponential linear unit.
docstring_tokens: Exponential linear unit .
function: def elu(x, alpha=1.):
    """Exponential linear unit.
  
    Arguments:
        x: A tensor or variable to compute the activation function for.
        alpha: A scalar, slope of positive section.
  
    Returns:
        A tensor.
    """
    res = nn.elu(x)
    if alpha == 1:
      return res
    else:
      return array_ops.where(x > 0, res, alpha * res)
function_tokens: def elu ( x , alpha = 1. ) : res = nn . elu ( x ) if alpha == 1 : return res else : return array_ops . where ( x > 0 , res , alpha * res )