Ë
    ÃÓ^j5  ã                   óN  — U d dl Z d dlmZ d dlmZ d dlmZ eZi ae	e
eegdf   f   ed<   i ae	e
e j                  e   f   ed<   g aee   ed<   defd	„Zd
edefd„Zd Zde
deddfd„Zde
defd„Zdeddfd„Zdd„Zdedee
egdf   de
fd„Zdedede
fd„Zd dlmZ  ee«       y)é    N)ÚCallable)ÚAny)ÚSourceÚindex_to_bytecode_constructorÚ index_to_external_object_weakrefÚ
keep_aliveÚreturnc                  ó    — t        t        «      S ©N)Úboolr   © ó    ún/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/torch/_dynamo/graph_bytecode_inputs.pyÚhas_user_objectsr      s   € ÜÔ-Ó.Ð.r   Úobjc                 ó0   — t         j                  | «       | S r   )r   Úappend)r   s    r   Ústash_graph_created_objectr      s   € Ü×Ñ�cÔØ€Jr   ÚindexÚvaluec                 óf   — t         j                  |«       t        j                  |«      t        | <   y)z;Update an entry in the external object registry at runtime.N)r   r   ÚweakrefÚrefr   )r   r   s     r   Úset_external_object_by_indexr   $   s$   € ä×Ñ�eÔÜ.5¯k©k¸%Ó.@Ô$ UÒ+r   c                 óv   — | t         vrt        d«      ‚t        |    «       }|€t        d«      ‚t        |    «       S )Nz4Index not registered in index_to_user_object_weakrefzUser object is no longer alive)r   ÚAssertionError)r   r   s     r   Úget_external_object_by_indexr   *   sC   € ØÔ4Ñ4ÜÐSÓTÐTÜ
*¨5Ñ
1Ó
3€CØ
€{ÜÐ=Ó>Ð>Ü+¨EÑ2Ó4Ð4r   Úargsc            
      óÂ   — t         j                  «        t         j                  t        | «      D ��ci c]  \  }}|t	        j
                  |«      “Œ c}}«       y c c}}w r   )r   ÚclearÚupdateÚ	enumerater   r   )r   ÚiÚargs      r   Ústore_user_object_weakrefsr%   3   sC   € ä$×*Ñ*Ô,Ü$×+Ñ+Ü+4°T«?×;¡  CˆŒG�K‰K˜ÓÑ	Ó;õùÛ;s   ² A
c                  ó|   — t         j                  «        t        j                  «        t        j                  «        y r   )r   r    r   r   r   r   r   Úreset_user_object_trackingr'   ;   s&   € Ü!×'Ñ'Ô)Ü$×*Ñ*Ô,Ü×ÑÕr   Úexample_valueÚconstruct_fnc                 ó   ‡‡— t         j                  | «       t        t        «      Šˆˆfd„t        ‰<   	 t	        j
                  | «      t        ‰<   ‰S # t        $ r!}ddlm	}  |dd| › �dg |¬«       Y d }~‰S d }~ww xY w)Nc                 ó   •—  ‰‰| «      S r   r   )Úcgr)   r   s    €€r   ú<lambda>z/register_graph_created_object.<locals>.<lambda>H   s   ø€ ±lÀ5È"Ó6M€ r   é   ©Úunimplementedz7Failed to make weakref to graph-created external objectúuser_object: ú0Object does not allow us to make a weakref to it©Úgb_typeÚcontextÚexplanationÚhintsÚfrom_exc)
r   r   Úlenr   r   r   r   Ú	TypeErrorÚexcr0   )r(   r)   Úer0   r   s    `  @r   Úregister_graph_created_objectr=   A   sˆ   ù€ ô
 ×Ñ�mÔ$ÜÔ-Ó.€EÜ+MÔ! %Ñ(ð
Ü29·+±+¸mÓ2LÔ(¨Ñ/ð €Løô ò 	
Ý&áØMØ# M ?Ð3ØJØØ÷	
ñ 	
ð €Lûð	
ús   µA Á	A=ÁA8Á8A=Úsourcec                 óÒ   ‡— t        t        «      }ˆfd„t        |<   	 t        j                  | «      t        |<   |S # t
        $ r!}ddlm}  |dd| › �dg |¬«       Y d }~|S d }~ww xY w)Nc                 ó   •—  | ‰«      S r   r   )r,   r>   s    €r   r-   z&register_user_object.<locals>.<lambda>\   s   ø€ ±b¸³j€ r   r.   r/   z%Failed to make weakref to User Objectr1   r2   r3   )r9   r   r   r   r   r:   r;   r0   )r   r>   r   r<   r0   s    `   r   Úregister_user_objectrA   Y   sx   ø€ äÔ-Ó.€EÛ+@Ô! %Ñ(ð
Ü29·+±+¸eÓ2DÔ(¨Ñ/ð €Løô ò 	
Ý&áØ;Ø# E 7Ð+ØJØØ÷	
ñ 	
ð €Lûð	
ús   ž< ¼	A&ÁA!Á!A&)Ú"set_leaf_function_module_retriever)r	   N)r   Úcollections.abcr   Útypingr   Útorch._dynamo.sourcer   Ú	PyCodegenr   ÚdictÚintÚ__annotations__r   ÚReferenceTyper   Úlistr   r   r   ÚCURRENT_STREAM_INDEXr   r   r%   r'   r=   rA   Ú,torch._higher_order_ops.invoke_leaf_functionrB   r   r   r   ú<module>rN      s1  ðÜ Ý $Ý å 'ð €	ð IKÐ ˜t C¨°9°+¸tÐ2CÑ)DÐ$DÑEÓ JàJLÐ   $ s¨G×,AÑ,AÀ#Ñ,FÐ'FÑ"GÓ Là€
ˆD�‰IÓ ð/˜$ó /ð Cð ¨Có ð
 Ð ðA¨ð A°Cð A¸Dó Að5¨ð 5°ó 5ð cð ¨dó óðØðØ&.°°YÐ/?ÀÐ/EÑ&Fðàóð0 ð ¨Vð ¸ó õ,ñ
 #Ð#?Õ @r   