o �J�h?�@sdZddlZddd�ZdS)za APIs related to torch.compile which lazily import torch._dynamo to avoid circular dependencies. �NTcs2�durt�����fdd��}|Stjt�d�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. Ncs>t�dd�}|durddl}|j����}|�_||i|��S)N�__dynamo_disabler)�getattrZ torch._dynamo�_dynamo�disabler)�args�kwargsZ disable_fn�torch��fn� recursive��LC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\torch\_compile.py�inners z_disable_dynamo.<locals>.inner)r )� functools�wraps�partial�_disable_dynamo)r r rr r r r s   r)NT)�__doc__rrr r r r �<module>s
Memory