§
    ·¯¸jç  ã                   óV   — d Z ddlZddlmc mZ ddlmZ  G d„ dej        ¦  «        ZdS )z% Linear layer (alternate definition)
é    N)Únnc                   ó6   — e Zd ZdZdej        dej        fd„ZdS )ÚLinearzûApplies a linear transformation to the incoming data: :math:`y = xA^T + b`

    Wraps torch.nn.Linear to support AMP + torchscript usage by manually casting
    weight & bias to input.dtype to work around an issue w/ torch.addmm in this use case.
    ÚinputÚreturnc                 ó:  — t           j                             ¦   «         r^| j        � | j                             |j        ¬¦  «        nd }t          j        || j                             |j        ¬¦  «        |¬¦  «        S t          j        || j        | j        ¦  «        S )N)Údtype)Úbias)	ÚtorchÚjitÚis_scriptingr
   Útor	   ÚFÚlinearÚweight)Úselfr   r
   s      úb/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/timm/layers/linear.pyÚforwardzLinear.forward   s}   € ÝŒ9×!Ò!Ñ#Ô#ð 	;Ø6:´iÐ6K�4”9—<’< e¤k�<Ñ2Ô2Ð2ÐQUˆDÝ”8˜E 4¤;§>¢>¸¼ >Ñ#DÔ#DÈ4ÐPÑPÔPÐPå”8˜E 4¤;°´	Ñ:Ô:Ð:ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚTensorr   © r   r   r   r      sD   € € € € € ðð ð
;˜Uœ\ð ;¨e¬lð ;ð ;ð ;ð ;ð ;ð ;r   r   )r   r   Útorch.nn.functionalr   Ú
functionalr   r   r   r   r   ú<module>r      s{   ððð à €€€Ø Ð Ð Ð Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð;ð ;ð ;ð ;ð ;ˆRŒYñ ;ô ;ð ;ð ;ð ;r   