Ë
    [^(h»  ã                   ód   — d dl Z d dlmZ d dlmZmZ dgZdeegef   deeedf      dee	   fd	„Z
y)
é    N)ÚIterable)ÚAnyÚCallableÚtrace_dependenciesÚcallableÚinputs.Úreturnc                 óÜ   ‡— t        «       Šˆfd„}	 t        j                  |«       |D ]  } | |Ž  Œ	 	 t        j                  d«       t        ‰«      S # t        j                  d«       w xY w)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                 óz  •— |dk7  ry | j                   j                  }d }|| j                  v r| j                  |   j                  }n`|| j                  v r| j                  |   j                  }n8d| j                  v r*t        | j                  d   |d «      }|r|j                  nd }|r‰j                  |«       y y )NÚcallÚself)Úf_codeÚco_nameÚ	f_globalsÚ
__module__Úf_localsÚgetattrÚadd)ÚframeÚeventÚargÚnameÚmoduleÚmethodÚmodules_useds         €úf/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/torch/package/analyze/trace_dependencies.pyÚrecord_used_modulesz/trace_dependencies.<locals>.record_used_modules   s±   ø€ ð �FŠ?Øð �|‰|×#Ñ#ˆØˆð �5—?‘?Ñ"Ø—_‘_ TÑ*×5Ñ5‰FØ�U—^‘^Ñ#Ø—^‘^ 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   
   sd   ø€ ô “5€Lô%ð:
ä�‰Ð*Ô+ð ò 	ˆCÙ�cŠNñ	ô
 	�‰�tÔä�ÓÐøô 	�‰�tÕús   ’!A ÁA+)r    Úcollections.abcr   Útypingr   r   Ú__all__Útupler"   Ústrr   © r   r   ú<module>r*      sQ   ðã 
Ý $ß  ð  Ð
 €ð7Ø˜�u˜c�zÑ"ð7Ø,4°U¸3À¸8±_Ñ,Eð7à	ˆ#�Yô7r   