o
    #ÕjÂ  ã                   @   s*   d dl mZ d dlmZ eddd„ƒZdS )	é    )Ú_legacy_C_ops)Údygraph_onlyNé   Fc                 C   s    |du r| S t  | |d|d|¡S )a  Append bias operation in dygraph mode.

        Args:
            input: the input variable.
            bias:  the bias to be appended
            axis:  the axis to perform operation
            use_mkldnn: whether to use mkldnn

    Return the Variable after bias operation
    NÚaxisÚ
use_mkldnn)r   Zelementwise_add)ÚinputZbiasr   r   © r   ú^/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddle/nn/utils/dygraph_utils.pyÚ_append_bias_in_dygraph   s
   ÿr
   )Nr   F)Zpaddler   Zpaddle.frameworkr   r
   r   r   r   r	   Ú<module>   s   