o
     Õj  ã                   @   s,   d dl mZ ddlmZ e	ddd„ƒZdS )é    )Ú_legacy_C_opsé   )Údygraph_onlyNc                 C   sF   |du r| S d}|rd|f}|r|d|f7 }t t|ƒ}|| g|¢R Ž S )zùAppend activation in dygraph mode.

        Args:
            input: the input variable.
            act: activation type
            use_mkldnn: if use mkldnn
            use_cudnn: if use cudnn

    Return the Variable after append activation
    N© Ú	use_cudnnÚ
use_mkldnn)Úgetattrr   )ÚinputZactr   r   ÚattrsZact_opr   r   úZ/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddle/base/dygraph_utils.pyÚ_append_activation_in_dygraph   s   
r   )NNN)Zpaddler   Z	frameworkr   r   r   r   r   r   Ú<module>   s
   ÿ