
    Pg                         d Z ddlZddZy)za
APIs related to torch.compile which lazily import torch._dynamo to avoid
circular dependencies.
    Nc                        t        j                          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.
    c                      t        dd       }|'dd l}|j                  j                        }|_         || i |S )N__dynamo_disabler   )getattrtorch._dynamo_dynamodisabler   )argskwargs
disable_fntorchfn	recursives       U/var/www/html/suriana-translation/venv/lib/python3.12/site-packages/torch/_compile.pyinnerz_disable_dynamo.<locals>.inner   sK     !%7>J!$"]]222yA
&0#t.v..    )r   )	functoolswrapspartial_disable_dynamo)r   r   r   s   `` r   r   r   
   sA     
~				/ 
		/    IFFr   )NT)__doc__r   r    r   r   <module>r      s   
 Gr   