§
    ŠŠtjÊ  ã                   ó~  — d Z ddlZddlmZ ddlmZmZ ddlmZ  ed¦  «        Z	 ed¦  «        Z
e	 dd	ee
e	f         d
edee
e	f         fd„¦   «         Ze	 dd	dd
edeee
e	f         gee
e	f         f         fd„¦   «         Z	 dd	ee
e	f         dz  d
edee
e	f         eee
e	f         gee
e	f         f         z  fd„ZdS )za
APIs related to torch.compile which lazily import torch._dynamo to avoid
circular dependencies.
é    N)ÚCallable)ÚoverloadÚTypeVar)Ú	ParamSpecÚ_TÚ_PTÚfnÚ	recursiveÚreturnc                 ó   — d S ©N© ©r	   r
   s     úL/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/torch/_compile.pyÚ_disable_dynamor      s	   € ð �só    c                 ó   — d S r   r   r   s     r   r   r      s	   € ð 69°Sr   c                 óÄ   ‡ ‡— ‰ �Bt          j        ‰ ¦  «        dt          j        dt          j        dt
          fˆ ˆfd„¦   «         }|S t          j        t          ‰¬¦  «        S )au  
    This API should be only used inside torch, external users should still use
    torch._dynamo.disable. The main goal of this API is to avoid circular
    imports issues that is common while using _dynamo.disable inside torch
    itself.

    This API avoids it by lazily importing torch._dynamo from the import time to
    the invocation of the decorated function.
    NÚargsÚkwargsr   c                  óŠ   •— t          ‰dd ¦  «        }|€(dd l}|j                             ‰‰d¬¦  «        }|‰_         || i |¤ŽS )NÚ__dynamo_disabler   F)Úwrapping)ÚgetattrÚtorch._dynamoÚ_dynamoÚdisabler   )r   r   Ú
disable_fnÚtorchr	   r
   s       €€r   Úinnerz_disable_dynamo.<locals>.inner*   sd   ø€ õ ! Ð%7¸Ñ>Ô>ˆJØÐ!Ø$Ð$Ð$Ð$ð #œ]×2Ò2°2°yÈ5Ð2ÑQÔQ�
Ø&0�Ô#à�:˜tÐ. vÐ.Ð.Ð.r   )r
   )Ú	functoolsÚwrapsr   r   r   r   Úpartialr   )r	   r
   r    s   `` r   r   r      s{   øø€ ð 
€~å	Œ˜Ñ	Ô	ð	/�œð 	/­B¬Ið 	/½"ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/ñ 
Ô	ð	/ð ˆõ Ô ¥¸IÐFÑFÔFÐFr   )T)NT)Ú__doc__r!   Úcollections.abcr   Útypingr   r   Útyping_extensionsr   r   r   Úboolr   r   r   r   ú<module>r)      s«  ððð ð
 Ð Ð Ð Ø $Ð $Ð $Ð $Ð $Ð $Ø $Ð $Ð $Ð $Ð $Ð $Ð $Ð $Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'ð €WˆT�]„]€Ø€Yˆt�_„_€ð 
à,0ðð Ø��R�ÔðØ%)ðàˆb�"ˆfÔðð ð ñ 
„ðð
 
à'+ð9ð 9Øð9Ø $ð9àˆx˜˜B˜ÔÐ  (¨2¨r¨6Ô"2Ð2Ô3ð9ð 9ð 9ñ 
„ð9ð ;?ð Gð  GØ��R�Ô˜4Ñð GØ37ð Gàˆb�"ˆfÔ˜ (¨2¨r¨6Ô"2Ð!3°X¸bÀ"¸fÔ5EÐ!EÔFÑFð Gð  Gð  Gð  Gð  Gð  Gr   