o
    + iZ  ã                   @   s*   d dl mZ d dlmZ eddd„ƒZdS )é    )Ú_legacy_C_ops)Údygraph_onlyNé   c                 C   s   |du r| S t  | |d|¡S )zëAppend bias operation in dygraph mode.

        Args:
            input: the input variable.
            bias:  the bias to be appended
            axis:  the axis to perform operation

    Return the Variable after bias operation
    NÚaxis)r   Zelementwise_add)ÚinputZbiasr   © r   úi/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/paddle/nn/utils/dygraph_utils.pyÚ_append_bias_in_dygraph   s   r	   )Nr   )Zpaddler   Zpaddle.frameworkr   r	   r   r   r   r   Ú<module>   s   