
    &Vf)                     h    d dl mZ d dlmZ d dlmZ  ed           G d de                      ZdS )    )activations)keras_export)Layerzkeras.layers.ELUc                   0     e Zd ZdZd fd	Zd Zd Z xZS )ELUa;  Applies an Exponential Linear Unit function to an output.

    Formula:

    ```
    f(x) = alpha * (exp(x) - 1.) for x < 0
    f(x) = x for x >= 0
    ```

    Args:
        alpha: float, slope of negative section. Defaults to `1.0`.
        **kwargs: Base layer keyword arguments, such as `name` and `dtype`.
          ?c                 V     t                      j        di | || _        d| _        d S )NT )super__init__alphasupports_masking)selfr   kwargs	__class__s      ]/var/www/html/software/conda/lib/python3.11/site-packages/keras/src/layers/activations/elu.pyr   zELU.__init__   s5    ""6"""
 $    c                 8    t          j        || j                  S )N)r   )r   elur   )r   inputss     r   callzELU.call   s    vTZ8888r   c                     |S )Nr
   )r   input_shapes     r   compute_output_shapezELU.compute_output_shape   s    r   )r   )__name__
__module____qualname____doc__r   r   r   __classcell__)r   s   @r   r   r      se         % % % % % %
9 9 9      r   r   N)	keras.srcr   keras.src.api_exportr   keras.src.layers.layerr   r   r
   r   r   <module>r#      s    ! ! ! ! ! ! - - - - - - ( ( ( ( ( (  !!    %   "!  r   