ó
    "Eñi»  ã                   óf   • S SK r S SKJrJr  S SKJr  S/rS\\/\4   S\\\S4      S\\	   4S	 jr
g)
é    N)ÚCallableÚIterable)ÚAnyÚtrace_dependenciesÚcallableÚinputs.Úreturnc                 óæ   ^• [        5       mU4S jn [        R                  " U5        U H  nU " U6   M
     [        R                  " S5        [        T5      $ ! [        R                  " S5        f = f)a¦  Trace the execution of a callable in order to determine which modules it uses.

Args:
    callable: The callable to execute and trace.
    inputs: The input to use during tracing. The modules used by 'callable' when invoked by each set of inputs
        are union-ed to determine all modules used by the callable for the purpooses of packaging.

Returns: A list of the names of all modules used during callable execution.
c                 ó˜  >• US:w  a  g U R                   R                  nS nX0R                  ;   a  U R                  U   R                  nOhX0R                  ;   a  U R                  U   R                  nO?SU R                  ;   a/  [        U R                  S   US 5      nU(       a  UR                  OS nU(       a  TR                  U5        g g )NÚcallÚself)Úf_codeÚco_nameÚ	f_globalsÚ
__module__Úf_localsÚgetattrÚadd)ÚframeÚeventÚargÚnameÚmoduleÚmethodÚmodules_useds         €Úe/home/mande/repo/quber/.venv/lib/python3.13/site-packages/torch/package/analyze/trace_dependencies.pyÚrecord_used_modulesÚ/trace_dependencies.<locals>.record_used_modules   s­   ø€ ð �F‹?Øð �|‰|×#Ñ#ˆØˆð —?‘?Ó"Ø—_‘_ TÑ*×5Ñ5‰FØ—^‘^Ó#Ø—^‘^ DÑ)×4Ñ4‰FØ�u—~‘~Ó%Ü˜UŸ^™^¨FÑ3°T¸4Ó@ˆFÞ*0�V×&Ò&°dˆFö Ø×Ñ˜VÕ$ð ó    N)ÚsetÚsysÚ
setprofileÚlist)r   r   r   Úinpr   s       @r   r   r   
   s_   ø€ ô “5€Lõ%ð:
ä�ŠÐ*Ô+ó ˆCÙ�c‹Nñ ô
 	�Š�tÔä�ÓÐøô 	�Š�tÕús   “$A ÁA0)r!   Úcollections.abcr   r   Útypingr   Ú__all__Útupler#   Ústrr   © r   r   Ú<module>r+      sQ   ðã 
ß .Ý ð  Ð
 €ð7Ø˜�u˜c�zÑ"ð7Ø,4°U¸3À¸8±_Ñ,Eð7à	ˆ#�Yõ7r   