§
    �Štj»  ã                   ó~   — d dl Z d dlmZmZ d dlmZ dgZdeegef         deeedf                  dee	         fd	„Z
dS )
é    N)ÚCallableÚIterable)ÚAnyÚtrace_dependenciesÚcallableÚinputs.Úreturnc                 óä   ‡— t          ¦   «         Šˆfd„}	 t          j        |¦  «         |D ]} | |Ž  Œ	 t          j        d¦  «         n# t          j        d¦  «         w xY wt          ‰¦  «        S )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                 ó6  •— |dk    rd S | j         j        }d }|| j        v r| j        |         j        }nL|| j        v r| j        |         j        }n0d| j        v r't          | j        d         |d ¦  «        }|r|j        nd }|r‰                     |¦  «         d S d S )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/html/CA-Chatbot/venv/lib/python3.11/site-packages/torch/package/analyze/trace_dependencies.pyÚrecord_used_modulesz/trace_dependencies.<locals>.record_used_modules   sÇ   ø€ ð �FŠ?ˆ?ØˆFð Œ|Ô#ˆØˆð �5”?Ð"Ð"Ø”_ TÔ*Ô5ˆFˆFØ�U”^Ð#Ð#Ø”^ DÔ)Ô4ˆFˆ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”5€Lð%ð %ð %ð %ð %ð:
åŒÐ*Ñ+Ô+Ð+ð ð 	ð 	ˆCØˆH�cˆNˆNˆNð	õ
 	Œ�tÑÔÐÐø�Œ�tÑÔÐÐøøøå�ÑÔÐs   –A
 Á
A )r    Úcollections.abcr   r   Útypingr   Ú__all__Útupler"   Ústrr   © r   r   ú<module>r*      s”   ðà 
€
€
€
Ø .Ð .Ð .Ð .Ð .Ð .Ð .Ð .Ø Ð Ð Ð Ð Ð ð  Ð
 €ð7Ø˜�u˜c�zÔ"ð7Ø,4°U¸3À¸8´_Ô,Eð7à	ˆ#„Yð7ð 7ð 7ð 7ð 7ð 7r   