§
    ŠŠtj{  ã                   óâ   — U d dl Z d dlmZ d dlmZ  G d„ d¦  «        Z e j        ¦   «         ae j        ej        e j	        e         f         e
d<   dej        deddfd	„Zdej        dedz  fd
„ZdS )é    N)Úcastc                   ó   — e Zd ZdS )Ú_StateN)Ú__name__Ú
__module__Ú__qualname__© ó    úa/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/torch/distributed/_composable_state.pyr   r      s   € € € € € Ø€Dr
   r   Ú_module_state_mappingÚmoduleÚstateÚreturnc                 óv   — | t           v rt          d| › d�¦  «        ‚t          j        |¦  «        t           | <   d S )Nz
Inserting z more than once.)r   ÚAssertionErrorÚweakrefÚref)r   r   s     r   Ú_insert_module_stater      sC   € àÕ&Ð&Ð&ÝÐB¨&ÐBÐBÐBÑCÔCÐCÝ$+¤K°Ñ$6Ô$6Õ˜&Ñ!Ð!Ð!r
   c                 óÀ   — t          | t          ¦  «        rt          t          | ¦  «        S | t          v r*t          |          } |¦   «         }|€t	          d¦  «        ‚|S dS )at  
    Return the ``_State`` in ``model``.

    Given a ``module``, this API finds out if the module is also a ``_State``
    instance or if the module is managed by a composable API. If the module
    is also a ``_State``, ``module`` will be casted to ``_State` and returned.
    If it is managed by a composable API, the corresponding ``_State`` will
    be returned.
    Nz(State has already been garbage collected)Ú
isinstancer   r   r   r   )r   Ú	state_refr   s      r   Ú_get_module_stater      sg   € õ �&�&Ñ!Ô!ð Ý•F˜FÑ#Ô#Ð#ð Õ*Ð*Ð*Ý-¨fÔ5ˆIØ�I‘K”KˆEØˆ}Ý$Ð%OÑPÔPÐPØˆLà�4r
   )r   Útypingr   Útorch.nnÚnnr   ÚWeakKeyDictionaryr   ÚModuleÚReferenceTypeÚ__annotations__r   r   r	   r
   r   ú<module>r       sù   ðØ €€€€Ø Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð ð	ð 	ð 	ð 	ð 	ñ 	ô 	ð 	ð €GÔÑÔð �wÔ0Ø„IˆwÔ$ VÔ,Ð,ôð  ð  ñ  ð
7 ¤ð 7°6ð 7¸dð 7ð 7ð 7ð 7ð˜bœið ¨F°T©Mð ð ð ð ð ð r
   