+
    QåûjÍ  ã                  ó&  € ^ RI Ht ^ RIHtHt ^ RIt]'       d   ^ RIHt R R lt]! 4       '       d)   ]P                  P                  4       '       g	   ]! R4      h]! 4       '       d   ^ RIHtHtHtHtHtHtHtHtHtHtHt R	R
.t ! R R	4      tR# )é    )Úannotations)ÚAnyÚTYPE_CHECKINGN)ÚTracebackTypec               ó   € V ^8„  d   QhRR/# )é   ÚreturnÚbool© )Úformats   "Ú_C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\distributed\autograd\__init__.pyÚ__annotate__r      s   € ÷ 4ñ 4�dñ 4ó    c                 ó6   € \        \        P                  R 4      # )Ú_dist_autograd_init)ÚhasattrÚtorchÚ_Cr   r   r   Úis_availabler      s   € Ü”5—8‘8Ð2Ó3Ð3r   z/Failed to initialize torch.distributed.autograd)Ú_current_contextÚ_get_debug_infoÚ_get_max_idÚ_initÚ_is_valid_contextÚ_new_contextÚ_release_contextÚ_retrieve_contextÚbackwardÚDistAutogradContextÚget_gradientsÚcontextr   c                  ó2   € ] tR t^%tRtR R ltR R ltRtR# )r!   aå  
Context object to wrap forward and backward passes when using
distributed autograd. The ``context_id`` generated in the ``with``
statement  is required to uniquely identify a distributed backward pass
on all workers. Each worker stores metadata associated with this
``context_id``, which is required to correctly execute a distributed
autograd pass.

Example::
    >>> # xdoctest: +SKIP
    >>> import torch.distributed.autograd as dist_autograd
    >>> with dist_autograd.context() as context_id:
    >>>     t1 = torch.rand((3, 3), requires_grad=True)
    >>>     t2 = torch.rand((3, 3), requires_grad=True)
    >>>     loss = rpc.rpc_sync("worker1", torch.add, args=(t1, t2)).sum()
    >>>     dist_autograd.backward(context_id, [loss])
c               ó   € V ^8„  d   QhRR/# )r   r	   Úintr   )r   s   "r   r   Úcontext.__annotate__8   s   € ÷ 3ñ 3˜3ñ 3r   c                	óT   € \        4       V n        V P                  P                  4       # ©N)r   Úautograd_contextÚ_context_id)Úselfs   &r   Ú	__enter__Úcontext.__enter__8   s!   € Ü ,£ˆÔØ×$Ñ$×0Ñ0Ó2Ð2r   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   Úexc_typeztype[BaseException] | NoneÚ	exc_valuezBaseException | NoneÚ	tracebackzTracebackType | Noner	   ÚNoner   )r   s   "r   r   r%   <   s2   € ÷ >ñ >à,ð>ð (ð>ð (ð	>ð
 
ñ>r   c                	óL   € \        V P                  P                  4       4       R # r'   )r   r(   r)   )r*   r.   r/   r0   s   &&&&r   Ú__exit__Úcontext.__exit__<   s   € ô 	˜×.Ñ.×:Ñ:Ó<Ö=r   )r(   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r+   r3   Ú__static_attributes__r   r   r   r!   r!   %   s   † ñõ$3÷>ñ >r   )Ú
__future__r   Útypingr   r   r   Útypesr   r   r   r   ÚRuntimeErrorÚtorch._C._distributed_autogradr   r   r   r   r   r   r   r   r   r   r    Ú__all__r!   r   r   r   Ú<module>rA      ss   ðÝ "ç %ã ÷ Ý#õ4ñ ‡>‚>˜%Ÿ(™(×6Ñ6×8Ò8Ù
ÐHÓ
IÐIá‡>‚>÷÷ ÷ ñ ð �nÐ
%€÷>ó >r   