§
    Ÿ²Åj3 ã                   óâ  — U d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl	Z	d dl
Z
d dlmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZmZ d dlZd dlmc m Z! d dl"m#Z# ddl$m Z% dd	l&m'Z' dd
l(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z. g d¢Z/erddl0m1Z1 ddl2m3Z3 e4ee5ee6ee7ee8eiZ9e5 :                    g d¢¦  «        Z;eee<         gee<         f         Z= G d„ de¦  «        Z>i Z?ee<e>f         e@d<   de<de<defd„ZA eAddejB        ¦  «          eAddejC        ¦  «          eAdd eDd¦  «        ¦  «          eAdde¦  «          eAddejE        ¦  «          eAd d!e%¦  «          eAd"d#e!¦  «         d$e<d%eFfd&„ZGd'e<d%e<fd(„ZH ejI         e	jJ        d)¦  «        jK        d*¦  «        ZLded%eFfd+„ZM G d,„ d-¦  «        ZNi ejO        d.“ejP        d/“ejQ        d0“ejR        d1“ejS        d2“ejT        d3“ejU        d4“ejV        d5“ejW        d6“ejX        d7“ejY        d8“ejZ        d9“ej[        d:“ej\        d;“ej]        d<“ejF        d=“ej^        d>“ej_        d?ej`        d@eja        dAejb        dBi¥Zc e'dC¬D¦  «        e G dE„ dF¦  «        ¦   «         ¦   «         ZddGe<dHe<d%e<fdI„Ze G dJ„ dK¦  «        Zf G dL„ dM¦  «        Zg G dN„ dOe¦  «        Zh edC¬P¦  «         G dQ„ dR¦  «        ¦   «         ZidSe<fdT„Zj e'dU¬D¦  «         G dV„ dW¦  «        ¦   «         Zk G dX„ dYek¦  «        Zl G dZ„ d[¦  «        Zm e'dC¬D¦  «         G d\„ d]¦  «        ¦   «         Znd^d_d`dadbdbdcdddedfdgdhdidjdkdlœZo e5dmdndodpdqdrdsdtdudvœ	fi eo¤ŽZpdwdxdydzd{d|d}d~dd€d�d‚dƒd„d…œZqdS )†é    N)Údefaultdict)Úcontextmanager)Ú	dataclass)ÚAnyÚCallableÚDictÚ	FrozenSetÚIterableÚListÚ
NamedTupleÚOptionalÚSetÚTupleÚTypeÚTYPE_CHECKING)Ú	_NodeIteré   )Ú_pytree)Úcompatibility)Ú_get_qualified_nameÚ
_type_reprÚArgumentÚmap_argÚNodeÚTarget)Ú
PythonCodeÚCodeGenÚGraph)ÚTracer)ÚGraphModule)Úcall_functionÚcall_methodÚget_attrÚcall_moduleÚplaceholderÚoutputc                   ó(   — e Zd ZU dZeed<   eed<   dS )Ú_CustomBuiltinzòAdditional objs that we add to every graph's globals.

    The repr() for some standard library objects is not valid Python code without
    an import. For common objects of this sort, we bundle them in the globals of
    every FX graph.
    Ú
import_strÚobjN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚstrÚ__annotations__r   © ó    ú?C:\Projects\Historical\venv\Lib\site-packages\torch/fx/graph.pyr(   r(   B   s.   € € € € € € ðð ð €O€O�Oà	€H€H�H€H€Hr2   r(   Ú_custom_builtinsÚnamer)   r*   c                 ó6   — t          ||¦  «        t          | <   d S ©N)r(   r4   )r5   r)   r*   s      r3   Ú_register_custom_builtinr8   S   s   € Ý+¨J¸Ñ<Ô<Õ�TÑÐÐr2   Úinfzfrom math import infÚnanzfrom math import nanÚNoneTypezNoneType = type(None)Útorchzimport torchÚdevicezfrom torch import deviceÚ	fx_pytreez$import torch.fx._pytree as fx_pytreeÚpytreez$import torch.utils._pytree as pytreeÚxÚreturnc                 óV   — |                       d¦  «        o|                      d¦  «        S )NÚ__)Ú
startswithÚendswith©r@   s    r3   Ú	_is_magicrG   `   s%   € Ø�<Š<˜ÑÔÐ2 !§*¢*¨TÑ"2Ô"2Ð2r2   Úsc                 óD   — t          | ¦  «                             ¦   «         S )zé
    Transforms the given string ``s`` to a Python-style variable name

    Examples:
        ``mod.snake_case`` -> ``mod.snake_case``
        ``mod.pascalCase``-> ``mod.pascal_case``
        ``mod.ALL_CAPS`` -> ``mod.all_caps``
    )Ú_snake_case_subÚlower)rH   s    r3   Ú_snake_caserL   d   s   € õ ˜1ÑÔ×#Ò#Ñ%Ô%Ð%r2   z(?<=[a-z])([A-Z])z_\1c                 óZ  — t          | dd ¦  «        }|�M|                     d¦  «        d         }|dk    o+|                     d¦  «         o|                     d¦  «         S t          | dd ¦  «        }|�7|dk    r1t          t          j        j        fD ]}t          ||d ¦  «        | u r dS Œd	S )
Nr,   ú.r   r<   ztorch._dynamo.ztorch._inductor.r+   TF)ÚgetattrÚ	partitionrD   r<   ÚnnÚ
functional)r*   Úmodule_nameÚbase_moduler5   Úguesss        r3   Ú_is_from_torchrV   t   sÖ   € Ý˜#˜|¨TÑ2Ô2€KØÐØ!×+Ò+¨CÑ0Ô0°Ô3ˆà˜7Ò"ð ?Ø×*Ò*Ð+;Ñ<Ô<Ð<ð?à×*Ò*Ð+=Ñ>Ô>Ð>ð	
õ �3˜
 DÑ)Ô)€DàÐ˜D GšO˜OÝ�UœXÔ0Ð1ð 	ð 	ˆEÝ�u˜d DÑ)Ô)¨SÐ0Ð0Ø�t�tð 1ð ˆ5r2   c                   ól   — e Zd ZdZd„ Zdedee         defd„Zdedefd„Z	dedede
fd	„Zdedefd
„ZdS )Ú
_Namespacea  A context for associating names uniquely with objects.

    The following invariants are enforced:
    - Each object gets a single name.
    - Each name is unique within a given namespace.
    - Names generated do not shadow builtins, unless the object is indeed that builtin.
    c                 óö   — i | _         t          ¦   «         | _        t          ¦   «         | _        t	          t
          ¦  «        | _        t          j        d¦  «        | _	        t          j        d¦  «        | _
        d S )Nz[^0-9a-zA-Z_]+z(.*)_(\d+)$)Ú_obj_to_nameÚsetÚ_unassociated_namesÚ_used_namesr   ÚintÚ_base_countÚreÚcompileÚ_illegal_char_regexÚ_name_suffix_regex©Úselfs    r3   Ú__init__z_Namespace.__init__‘   s]   € Ø,.ˆÔÝ#&¡5¤5ˆÔ Ý%(¡U¤UˆÔÝ+6µsÑ+;Ô+;ˆÔå#%¤:Ð.>Ñ#?Ô#?ˆÔ Ý"$¤*¨^Ñ"<Ô"<ˆÔÐÐr2   Ú	candidater*   rA   c                 ó¢  — |�|| j         v r| j         |         S | j                             d|¦  «        }|sd}|d                              ¦   «         rd|› �}| j                             |¦  «        }|€|}d}n(|                     dd¦  «        \  }}t          |¦  «        }|€|n|› d|› �}|s| j        |         }|| j	        v s|  
                    ||¦  «        r+|dz  }|› d|› �}|| j	        v °|  
                    ||¦  «        °+| j	                             |¦  «         || j        |<   |€| j                             |¦  «         n
|| j         |<   |S )zÜCreate a unique name.

        Arguments:
            candidate: used as the basis for the unique name, relevant to the user.
            obj: If not None, an object that will be associated with the unique name.
        NÚ_Ú_unnamedr   r   é   )rZ   rb   ÚsubÚisdigitrc   ÚmatchÚgroupr^   r_   r]   Ú_is_illegal_nameÚaddr\   )re   rg   r*   rn   ÚbaseÚnumÚnum_strs          r3   Úcreate_namez_Namespace.create_nameš   s�  € ð ˆ?˜s dÔ&7Ð7Ð7ØÔ$ SÔ)Ð)ð Ô,×0Ò0°°iÑ@Ô@ˆ	àð 	#Ø"ˆIà�QŒ<×ÒÑ!Ô!ð 	(Ø'˜I˜˜ˆIàÔ'×-Ò-¨iÑ8Ô8ˆØˆ=ØˆDØˆCˆCà!ŸKšK¨¨1Ñ-Ô-‰MˆD�'Ý�g‘,”,ˆCà˜K�D�D°¨_¨_°s¨_¨_ˆ	Øð 	)ØÔ" 4Ô(ˆCà˜4Ô+Ð+Ð+¨t×/DÒ/DÀYÐPSÑ/TÔ/TÐ+Ø�1‰HˆCØ˜˜ #˜˜ˆIð ˜4Ô+Ð+Ð+¨t×/DÒ/DÀYÐPSÑ/TÔ/TÐ+ð 	Ô×Ò˜YÑ'Ô'Ð'Ø!$ˆÔ˜ÑØˆ;ØÔ$×(Ò(¨Ñ3Ô3Ð3Ð3à%.ˆDÔ˜cÑ"ØÐr2   r5   c                 óz   — || j         vsJ ‚|| j        v sJ ‚|| j         |<   | j                             |¦  «         dS )zpAssociate a unique name with an object.

        Neither `name` nor `obj` should be associated already.
        N)rZ   r\   Úremove©re   r5   r*   s      r3   Úassociate_name_with_objz"_Namespace.associate_name_with_objÅ   sV   € ð
 ˜$Ô+Ð+Ð+Ð+Ð+Ø�tÔ/Ð/Ð/Ð/Ð/Ø!%ˆÔ˜#ÑØÔ ×'Ò'¨Ñ-Ô-Ð-Ð-Ð-r2   c                 ó¤   — |t           j        v rdS |t          j        v r|t          j        |         uS |t          v r|t          |         j        uS dS )NTF)ÚkeywordÚkwlistÚbuiltinsÚ__dict__r4   r*   rx   s      r3   rp   z_Namespace._is_illegal_nameÏ   s^   € à•7”>Ð!Ð!Ø�4ð •8Ô$Ð$Ð$Ø�hÔ/°Ô5Ð5Ð5ð Õ#Ð#Ð#ØÕ.¨tÔ4Ô8Ð8Ð8àˆur2   c                 ód   — || j         v sJ ‚|| j         |<   | j                             |¦  «         d S r7   )rZ   r]   rq   )re   r*   r5   s      r3   Ú_rename_objectz_Namespace._rename_objectÞ   s@   € Ø�dÔ'Ð'Ð'Ð'Ð'Ø!%ˆÔ˜#ÑØÔ×Ò˜TÑ"Ô"Ð"Ð"Ð"r2   N)r+   r,   r-   r.   rf   r/   r   r   ru   ry   Úboolrp   r€   r1   r2   r3   rX   rX   ˆ   sÈ   € € € € € ðð ð=ð =ð =ð) Sð )¨x¸¬}ð )Àð )ð )ð )ð )ðV.¨Cð .°cð .ð .ð .ð .ð Sð ¨sð °tð ð ð ð ð# #ð #¨Sð #ð #ð #ð #ð #ð #r2   rX   Úbf16Úf64Úf32Úf16Úf8e4m3fnÚf8e5m2Ú
f8e4m3fnuzÚ
f8e5m2fnuzÚc32Úc64Úc128Úi8Úi16Úi32Úi64Úb8Úu8Úu16Úu32Úu64Úb16T©Úis_backward_compatiblec                   ój   — e Zd ZU dZeed<   eeef         ed<   eee	ee	         f                  ed<   dS )r   zZ
    Represents all the information necessary to exec or save a graph as Python code.
    ÚsrcÚglobalsÚ_lineno_mapN)
r+   r,   r-   r.   r/   r0   r   r   r   r^   r1   r2   r3   r   r   ý   s\   € € € € € € ðð ð
 
€H€H�Hà�#�s�(Œ^ÐÐÑð ˜$˜s H¨S¤MÐ1Ô2Ô3Ð3Ð3Ñ3Ð3Ð3r2   r   rr   Útargetc                 óˆ   — |                      d¦  «        }| }|D ]'}|                     ¦   «         s
d|› d|› d�}Œ |› d|› �}Œ(|S )NrN   zgetattr(z, "ú"))ÚsplitÚisidentifier)rr   r�   ÚelemsÚrÚes        r3   Ú_format_targetr¥     si   € Ø�LŠL˜ÑÔ€EØ€AØð ð ˆØ�~Š~ÑÔð 	Ø&˜1Ð&Ð& Ð&Ð&Ð&ˆAˆAà�
�
�q�
�
ˆAˆAØ€Hr2   c                   ó    — e Zd Zd„ Zd„ Zd„ ZdS )Ú_InsertPointc                 ó<   — || _         |j        |c| _        |_        d S r7   )ÚgraphÚ_insertÚorig_insert)re   r©   Ú
new_inserts      r3   rf   z_InsertPoint.__init__  s    € ØˆŒ
Ø*/¬-¸Ð'ˆÔ˜%œ-˜-˜-r2   c                 ó   — d S r7   r1   rd   s    r3   Ú	__enter__z_InsertPoint.__enter__  s   € Øˆr2   c                 ó(   — | j         | j        _        d S r7   )r«   r©   rª   )re   ÚtypeÚvalueÚtbs       r3   Ú__exit__z_InsertPoint.__exit__   s   € Ø!Ô-ˆŒ
ÔÐÐr2   N)r+   r,   r-   rf   r®   r³   r1   r2   r3   r§   r§     sD   € € € € € ðDð Dð Dðð ð ð.ð .ð .ð .ð .r2   r§   c                   ó2   — e Zd Zd
dddefd„Zd„ Zd„ Zd„ Zd	S )Ú
_node_listÚ_nextr©   r   Ú	directionc                 ó.   — |dv sJ ‚|| _         || _        d S )N)r¶   Ú_prev)r©   r·   )re   r©   r·   s      r3   rf   z_node_list.__init__%  s&   € ØÐ.Ð.Ð.Ð.Ð.ØˆŒ
Ø"ˆŒˆˆr2   c                 ó   — | j         j        S r7   )r©   Ú_lenrd   s    r3   Ú__len__z_node_list.__len__*  s   € ØŒzŒÐr2   c              #   óŒ   K  — | j         dk    s| j         dk    sJ ‚t          | j        j        | j         dk    ¦  «        E d {V —† d S ©Nr¹   r¶   )r·   r   r©   Ú_rootrd   s    r3   Ú__iter__z_node_list.__iter__-  sY   è è € ØŒ~ Ò(Ð(¨D¬N¸gÒ,EÐ,EÐ,EÐEÝ˜TœZÔ-¨t¬~ÀÒ/HÑIÔIÐIÐIÐIÐIÐIÐIÐIÐIÐIr2   c                 óF   — t          | j        | j        dk    rdnd¦  «        S r¾   )rµ   r©   r·   rd   s    r3   Ú__reversed__z_node_list.__reversed__1  s%   € Ý˜$œ*°´À7Ò1JÐ1J g gÐPWÑXÔXÐXr2   N)r¶   )r+   r,   r-   r/   rf   r¼   rÀ   rÂ   r1   r2   r3   rµ   rµ   $  sp   € € € € € ð#ð #˜gð #°#ð #ð #ð #ð #ð
ð ð ðJð Jð JðYð Yð Yð Yð Yr2   rµ   c                   ó^   — e Zd ZU dZee         ed<   ej        ed<   e	ej                 ed<   dS )Ú_PyTreeInfoz=
    Contains extra info stored when we're using Pytrees
    Ú	orig_argsÚin_specÚout_specN)
r+   r,   r-   r.   r   r/   r0   r?   ÚTreeSpecr   r1   r2   r3   rÄ   rÄ   5  sO   € € € € € € ðð ð �CŒyÐÐÑØŒ_ÐÐÑØ�v”Ô'Ð'Ð'Ñ'Ð'Ð'r2   rÄ   )Úfrozenc                   óB   — e Zd ZU dZeed<   eed<   eed<   eed<   d„ ZdS )Ú_ParsedStackTracez?
    Represents the top-most frame of a parsed stack trace
    ÚfileÚlinenor5   Úcodec                 óF   — d| j         › d| j        › d| j        › d| j        › �S )NzFile: ú:z in z, code: )rÌ   rÍ   r5   rÎ   rd   s    r3   Úget_summary_strz!_ParsedStackTrace.get_summary_strJ  s0   € ØS˜œ	ÐSÐS D¤KÐSÐS°T´YÐSÐSÈÌ	ÐSÐSÐSr2   N)r+   r,   r-   r.   r/   r0   rÑ   r1   r2   r3   rË   rË   ?  sZ   € € € € € € ðð ð €I€I�IØ€K€K�KØ
€I€I�IØ
€I€I�IðTð Tð Tð Tð Tr2   rË   Ústack_tracec                 ó  — | €d S t          j        d¦  «        }|                      ¦   «                              d¦  «        }t	          t          |¦  «        dz
  dd¦  «        D ]£}||                              ¦   «         }|                     |¦  «        }|rp|                     d¦  «        }|                     d¦  «        }|                     d¦  «        }||dz                                 ¦   «         }	t          ||||	¦  «        c S Œ¤d S )Nz$^File \"(.+)\", line (\d+), in (.+)$ú
rk   éÿÿÿÿr   é   )	r`   ra   Ústripr    ÚrangeÚlenrn   ro   rË   )
rÒ   ÚpatternÚlinesÚidxÚlineÚmatchesrÌ   rÍ   r5   rÎ   s
             r3   Ú_parse_stack_tracerß   O  s  € ØÐØˆtÝŒjÐ@ÑAÔA€GØ×ÒÑÔ×%Ò% dÑ+Ô+€Eõ •S˜‘Z”Z !‘^ R¨Ñ,Ô,ð 	?ð 	?ˆØ�SŒz×ÒÑ!Ô!ˆØ—-’- Ñ%Ô%ˆØð 	?Ø—=’= Ñ#Ô#ˆDØ—]’] 1Ñ%Ô%ˆFØ—=’= Ñ#Ô#ˆDà˜˜q™”>×'Ò'Ñ)Ô)ˆDÝ$ T¨6°4¸Ñ>Ô>Ð>Ð>Ð>ð	?ð ˆ4r2   Fc                   ó¼   — e Zd Zd„ Zdee         dedefd„Zdedefd„Zde	de	fd	„Z
d
e	de	fd„Zdeeee	f                  fd„Zdddddœdededededededefd„ZdS )r   c                 ó"   — d | _         d| _        d S )NÚforward)Ú_body_transformerÚ
_func_namerd   s    r3   rf   zCodeGen.__init__f  s   € Ø>BˆÔØ(ˆŒˆˆr2   Ú	free_varsÚmaybe_return_annotationrA   c                 ó´   — t          |¦  «        dk    s|d         dk    r|                     dd¦  «         d| j        › dd                     |¦  «        › d|› d�S )zÂ
        Given the free variables and a return annotation, generates the beginning of the FX function.
        By default, `gen_fn_def(['a', 'b'], '') == 'def {self._func_name}(a, b):'`
        r   re   zdef ú(ú, ú)rÐ   )rÙ   Úinserträ   Újoin)re   rå   ræ   s      r3   Ú
gen_fn_defzCodeGen.gen_fn_defj  sk   € õ ˆy‰>Œ>˜QÒÐ )¨A¤,°&Ò"8Ð"8Ø×Ò˜Q Ñ'Ô'Ð'àV�4”?ÐVÐV T§Y¢Y¨yÑ%9Ô%9ÐVÐVÐ<SÐVÐVÐVð	
r2   Úoutput_argsc                 ó&   — dt          |¦  «        › �S )z�
        Given the output arguments, generates the return statement of the FX function.
        Note: The returned statement should not be indented.
        zreturn ©Úrepr)re   rî   s     r3   Úgenerate_outputzCodeGen.generate_outputw  s   € ð
 -�˜kÑ*Ô*Ð,Ð,Ð,r2   Úargsc                 ó   — |S )a{  
        Transforms the inputs so that the graph can take them as arguments, as
        non-default codegen may result in the inputs to the function being
        different from the inputs to the graph.

        If the graph was directly runnable, this invariant should hold true
        `f.graph.process_outputs(f.graph(*f.graph.process_inputs(*inputs))) == f(*inputs)`
        r1   ©re   ró   s     r3   Úprocess_inputszCodeGen.process_inputs~  s	   € ð ˆr2   Úoutputsc                 ó   — |S )z‡
        Transforms the outputs of the graph to be identical to the codegen.

        See ``process_inputs`` for more details.
        r1   )re   r÷   s     r3   Úprocess_outputszCodeGen.process_outputs‰  s	   € ð ˆr2   c                 ó   — g S )zÑ
        If your codegen uses extra global values, add tuples of (identifier,reference to the value) here.
        For example, return ['List', typing.List] if you need ``List`` in the global context.
        r1   rd   s    r3   Úadditional_globalszCodeGen.additional_globals‘  s	   € ð
 ˆ	r2   F©ÚverboseÚinclude_strideÚinclude_deviceÚcoloredÚroot_moduleÚ	namespacerý   rþ   rÿ   r   c                ó	  ‡ ‡‡‡‡‡‡‡‡‡ ‡!‡"‡#‡$‡%‡&‡'‡(‡)‡*‡+‡,‡-‡.‡/‡0‡1‡2‡3— g Š'g Š"i Š(i Š3dgŠ)‰p#t           j                             dd¦  «        dk    Š‰p#t           j                             dd¦  «        dk    Šdt          dt          fˆ(ˆfd„Š t
                               ¦   «         D ]\  }\  }	}
 ‰ ||
¦  «         Œd	t          fˆ ˆ0fd
„Š0ddddddddddœ	Š#ˆ#ˆfd„} |d¦  «        } |d¦  «        } |d¦  «        Š- |d¦  «        } |d¦  «        Š& |d¦  «        Š$ |d¦  «        Š% |d¦  «        Š!dt          dt          fˆˆ ˆ!fd „Šd!t          t          d"f         d#t          t          t          f         dt          fˆfd$„Ši Š+i Š1d%t          d&t          fˆ+ˆ1fd'„Š.t          |¦  «        D ]4Š*t          ‰*j        ˆ*ˆ.fd(„¦  «         t          ‰*j        ˆ*ˆ.fd)„¦  «         Œ5d&t          fˆ"ˆ$ˆ1fd*„}d Š,d+t          fˆ"ˆ$ˆ,fd,„}d-t          dt          fd.„Š/d+t          fˆˆˆ ˆ!ˆ"ˆ%ˆ&ˆ'ˆˆˆ)ˆ-ˆˆ ˆ/ˆ0ˆˆ3fd/„}t!          |¦  «        D ]A\  }Š*‰r |‰*¦  «         ‰"                     d0|› d1�¦  «          |‰*¦  «          |‰*¦  «         ŒBt%          ‰"¦  «        d2k    r‰"                     d3¦  «         t%          ‰3¦  «        d2k    r= ‰ d4t&          j        j        ¦  «        Š2d1                     ˆ2fd5„‰3D ¦   «         ¦  «        }nd}‰ j        r‰                      ‰"¦  «        Š"‰                      ¦   «         D ]\  }} ‰ ||¦  «         Œ‰                      ‰'‰)d2         ¦  «        }i }|                     d1¦  «        d6z   }g }d }d                     ‰"¦  «                             d1¦  «        D ]{}t9          j        d7|¦  «        }|r8|                     d6¦  «        �#t?          |                     d6¦  «        ¦  «        }ŒQ||t%          |¦  «        |z   <   |                     |¦  «         Œ|d1                     |¦  «                              d1¦  «        }d1                     d8„ |                     d1¦  «        D ¦   «         ¦  «        }d1|› d9|› d1|› �}tC          |‰(|¬:¦  «        S );NÚ ÚFX_GRAPH_SHOW_STRIDEÚ0Ú1ÚFX_GRAPH_SHOW_DEVICEÚ	name_hintr*   c                 ó¾   •— t          |¦  «        r|t          j        k    rt          |¦  «        S ‰                     | |¦  «        }|‰v r‰|         |u sJ ‚|S |‰|<   |S )a  Add an obj to be tracked as a global.

            We call this for names that reference objects external to the
            Graph, like functions or types.

            Returns: the global name that should be used to reference 'obj' in generated source.
            )rV   r<   r=   r   ru   )r	  r*   Úglobal_nameÚglobals_r  s      €€r3   Ú
add_globalz,CodeGen._gen_python_code.<locals>.add_global±  s€   ø€ õ ˜sÑ#Ô#ð0Ø(+­u¬|Ò(;Ð(;õ
 +¨3Ñ/Ô/Ð/ð $×/Ò/°	¸3Ñ?Ô?ˆKà˜hÐ&Ð&Ø Ô,°Ð3Ð3Ð3Ð3Ø"Ð"Ø$'ˆH�[Ñ!ØÐr2   Úoc                 ó�  •— | dk    rdS t          | ¦  «        }t          | d¦  «        r“t                               | j        | j        ¦  «        } ‰t          |¦  «        |¦  «        }t          | d¦  «        rCˆfd„| j        D ¦   «         }t          |¦  «        dk    r|S |› dd                     |¦  «        › d	�S |S  ‰|| ¦  «        S )
Nr1   z()Ú
__origin__Ú__args__c                 ó&   •— g | ]} ‰|¦  «        ‘ŒS r1   r1   )Ú.0ÚargÚ	type_reprs     €r3   ú
<listcomp>z?CodeGen._gen_python_code.<locals>.type_repr.<locals>.<listcomp>Ü  s!   ø€ ÐAÐAÐA¨s˜I˜I c™NœNÐAÐAÐAr2   r   ú[ú,ú])r   ÚhasattrÚ_origin_type_mapÚgetr  r  rÙ   rì   )r  ÚtypenameÚorigin_typeÚorigin_typenameró   r  r  s        €€r3   r  z+CodeGen._gen_python_code.<locals>.type_reprÎ  sá   ø€ Ø�BŠwˆwà�tå! !‘}”}ˆHå�q˜,Ñ'Ô'ð +å.×2Ò2°1´<ÀÄÑNÔN�Ø", *­Z¸Ñ-DÔ-DÀkÑ"RÔ"R�å˜1˜jÑ)Ô)ð +àAÐAÐAÐA°a´jÐAÑAÔA�Då˜4‘y”y A’~�~ð  /Ð.à-ÐAÐA°·²¸±´ÐAÐAÐAÐAð +Ð*ð �:˜h¨Ñ*Ô*Ð*r2   z[33mz[36mz[32mz[34mz[31mz[2mz	[2m[34mz	[2m[32mz[0m)	ÚyellowÚcyanÚgreenÚblueÚredÚdimÚdim_blueÚ	dim_greenÚresetc                 ó   •‡ — ˆˆˆ fd„}|S )Nc                 ó4   •— ‰r‰‰         › | › ‰d         › �S | S )Nr(  r1   )rH   Úcodesr   r5   s    €€€r3   Úfz>CodeGen._gen_python_code.<locals>.make_wrapper_func.<locals>.fù  s.   ø€ Øð ?Ø# DœkÐ>¨1Ð>¨e°G¬nÐ>Ð>Ð>Ø�r2   r1   )r5   r,  r+  r   s   ` €€r3   Úmake_wrapper_funcz3CodeGen._gen_python_code.<locals>.make_wrapper_funcø  s.   øø€ ðð ð ð ð ð ð ð
 ˆHr2   r   r!  r$  r"  r'  r%  r&  r#  r  rA   c                 ó@  •— t          | t          ¦  «        ret          | d¦  «        rUt          t	          | ¦  «        ¦  «        } ‰|t	          | ¦  «        ¦  «        }|› t          t          | ¦  «        ¦  «        › �S t          | t          j        j        t          j        j	        f¦  «        rt          | ¦  «        } ‰|| ¦  «        }|› S t          | t          j        ¦  «        r$| j        } ‰|j        |¦  «        }|› d| j        › �S t          | t          ¦  «        rt          | ¦  «        S t          | t          j        ¦  «        rWt#          |                      ¦   «         ¦  «        }t'          | j        ¦  «                             d¦  «        d         }d|› d|› d�S t          | t          ¦  «        rOt-          | ¦  «        dk    rd ‰| d	         ¦  «        › d
�S dd                     ˆfd„| D ¦   «         ¦  «        z   dz   S t          | t"          ¦  «        r'dd                     ˆfd„| D ¦   «         ¦  «        z   dz   S t          | t0          ¦  «        r6d ‰| j        ¦  «        › d ‰| j        ¦  «        › d ‰| j        ¦  «        › d�S  ‰	t          | ¦  «        ¦  «        S )NÚ_fieldsrN   rÕ   ztorch.Tensor(size=z, dtype=rê   r   rè   r   z,)ré   c              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S r7   r1   ©r  ÚaÚ	_get_reprs     €r3   ú	<genexpr>z>CodeGen._gen_python_code.<locals>._get_repr.<locals>.<genexpr>#  s+   øè è € Ð*EÐ*E¸A¨9¨9°Q©<¬<Ð*EÐ*EÐ*EÐ*EÐ*EÐ*Er2   r  c              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S r7   r1   r1  s     €r3   r4  z>CodeGen._gen_python_code.<locals>._get_repr.<locals>.<genexpr>%  s+   øè è € Ð&AÐ&A¸ y y°¡|¤|Ð&AÐ&AÐ&AÐ&AÐ&AÐ&Ar2   r  zslice()Ú
isinstanceÚtupler  r   r°   rñ   r<   Ú_opsÚ
OpOverloadÚHigherOrderOperatorÚenumÚEnumÚ	__class__r+   r5   r   ÚTensorÚlistÚsizer/   Údtyper    rÙ   rì   ÚsliceÚstartÚstopÚstep)
r  Úqualified_namer  ÚclsÚclsnamer@  rA  r3  r  r#  s
          €€€r3   r3  z+CodeGen._gen_python_code.<locals>._get_repr	  s£  ø€ å˜#�uÑ%Ô%ð '­'°#°yÑ*AÔ*Að 'Ý!4µT¸#±Y´YÑ!?Ô!?�Ø(˜j¨½¸c¹¼ÑCÔC�Ø%Ð9¥t­E°#©J¬JÑ'7Ô'7Ð9Ð9Ð9ÝØ•e”jÔ+­U¬ZÔ-KÐLñô ð 'õ "5°SÑ!9Ô!9�Ø(˜j¨¸Ñ=Ô=�Ø%Ð'Ð'Ý˜C¥¤Ñ+Ô+ð 'Ø”m�Ø$˜* S¤\°3Ñ7Ô7�Ø!Ð.Ð. C¤HÐ.Ð.Ð.Ý˜C¥Ñ&Ô&ð 'Ý˜C‘y”yÐ Ý˜C¥¤Ñ.Ô.ð 'Ý˜CŸHšH™JœJÑ'Ô'�Ý˜CœI™œ×,Ò,¨SÑ1Ô1°"Ô5�ØB¨DÐBÐB¸%ÐBÐBÐBÐBÝ˜C¥Ñ'Ô'ð 
'Ý�s‘8”8˜q’=�=Ø4˜y˜y¨¨Q¬Ñ0Ô0Ð4Ð4Ð4Ð4à §¢Ð*EÐ*EÐ*EÐ*EÀÐ*EÑ*EÔ*EÑ!EÔ!EÑEÈÑKÐKÝ˜C¥Ñ&Ô&ð 'Ø˜TŸYšYÐ&AÐ&AÐ&AÐ&A¸SÐ&AÑ&AÔ&AÑAÔAÑAÀCÑGÐGÝ˜C¥Ñ'Ô'ð 'Øe 	 	¨#¬)Ñ 4Ô 4ÐeÐe¸	¸	À#Ä(Ñ8KÔ8KÐeÐeÈyÈyÐY\ÔYaÑObÔObÐeÐeÐeÐeà�t�D ™IœI‘”Ð&r2   ró   .Úkwargsc                 óÊ   •— d                      ˆfd„| D ¦   «         ¦  «        }d                      ˆfd„|                     ¦   «         D ¦   «         ¦  «        }|r	|r|› d|› �S |p|S )Nré   c              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S r7   r1   r1  s     €r3   r4  zACodeGen._gen_python_code.<locals>._format_args.<locals>.<genexpr>.  s+   øè è € Ð:Ð:°˜y˜y¨™|œ|Ð:Ð:Ð:Ð:Ð:Ð:r2   c              3   ó>   •K  — | ]\  }}|› d  ‰|¦  «        › �V — ŒdS )ú = Nr1   )r  ÚkÚvr3  s      €r3   r4  zACodeGen._gen_python_code.<locals>._format_args.<locals>.<genexpr>/  s=   øè è € Ð TÐ T¹T¸QÀ AÐ!8Ð!8¨)¨)°A©,¬,Ð!8Ð!8Ð TÐ TÐ TÐ TÐ TÐ Tr2   )rì   Úitems)ró   rI  Úargs_sÚkwargs_sr3  s       €r3   Ú_format_argsz.CodeGen._gen_python_code.<locals>._format_args+  s‡   ø€ ð —Y’YÐ:Ð:Ð:Ð:°TÐ:Ñ:Ô:Ñ:Ô:ˆFØ—y’yÐ TÐ TÐ TÐ TÀVÇ\Â\Á^Ä^Ð TÑ TÔ TÑTÔTˆHØð /˜(ð /Ø Ð.Ð. HÐ.Ð.Ð.ØÐ%˜XÐ%r2   ÚnÚuserc                 óp   •— | ‰vr0|‰| <   ‰                      |g ¦  «                             | ¦  «         d S d S r7   )Ú
setdefaultÚappend)rT  rU  Únode_to_last_useÚuser_to_last_usess     €€r3   Úregister_last_usesz4CodeGen._gen_python_code.<locals>.register_last_uses;  sL   ø€ ØÐ(Ð(Ð(Ø&*Ð  Ñ#Ø!×,Ò,¨T°2Ñ6Ô6×=Ò=¸aÑ@Ô@Ð@Ð@Ð@ð )Ð(r2   c                 ó   •—  ‰| ‰¦  «        S r7   r1   ©rT  Únoder[  s    €€r3   ú<lambda>z*CodeGen._gen_python_code.<locals>.<lambda>A  s   ø€ Ð);Ð);¸A¸tÑ)DÔ)D€ r2   c                 ó   •—  ‰| ‰¦  «        S r7   r1   r]  s    €€r3   r_  z*CodeGen._gen_python_code.<locals>.<lambda>B  s   ø€ Ð+=Ð+=¸aÀÑ+FÔ+F€ r2   c                 óæ  •— | j         dk    rdS | j         dk    r‰                     d¦  «         dS ‰                     | g ¦  «        }t          | j                             ¦   «         ¦  «        dk    r|                     | ¦  «         t          |¦  «        rGd                     d„ |D ¦   «         dgz   ¦  «        }‰                     d	 ‰|¦  «        › d�¦  «         dS ‰                     d¦  «         dS )
zÔ
            Delete values after their last use. This ensures that values that are
            not used in the remainder of the code are freed and the memory usage
            of the code is optimal.
            r%   Nr&   rÔ   r   rM  c                 ó,   — g | ]}t          |¦  «        ‘ŒS r1   rð   ©r  rT  s     r3   r  zJCodeGen._gen_python_code.<locals>.delete_unused_values.<locals>.<listcomp>Y  s   € Ð6Ð6Ð6 •T˜!‘W”WÐ6Ð6Ð6r2   ÚNoneú;  )ÚoprX  r  rÙ   ÚusersÚkeysrì   )rU  Únodes_to_deleteÚto_delete_strÚbodyr%  rZ  s      €€€r3   Údelete_unused_valuesz6CodeGen._gen_python_code.<locals>.delete_unused_valuesD  s  ø€ ð Œw˜-Ò'Ð'Ø�ØŒw˜(Ò"Ð"Ø—’˜DÑ!Ô!Ð!Ø�Ø/×3Ò3°D¸"Ñ=Ô=ˆOå�4”:—?’?Ñ$Ô$Ñ%Ô%¨Ò*Ð*ð  ×&Ò& tÑ,Ô,Ð,å�?Ñ#Ô#ð "Ø %§
¢
Ø6Ð6 oÐ6Ñ6Ô6¸&¸ÑAñ!ô !�ð —’Ð8 # # mÑ"4Ô"4Ð8Ð8Ð8Ñ9Ô9Ð9Ð9Ð9à—’˜DÑ!Ô!Ð!Ð!Ð!r2   r^  c                 óV  •— | j         dvrœ| j        rg| j        ‰k    rZ| j        Šd}t          | j        ¦  «        x}r|                     ¦   «         }‰                     d ‰d|z   ¦  «        › d�¦  «         dS dS ‰dk    r*dŠd}‰                     d ‰|¦  «        › d�¦  «         dS dS dS )z}
            Append a summary of the stacktrace to the generated code. This is
            useful for debugging.
            >   r&   r%   r  z
 z# rÔ   z)# No stacktrace found for following nodesN)rf  rÒ   rß   rÑ   rX  )r^  Úsummary_strÚparsed_stack_traceÚno_stacktrace_msgrk  r%  Úprev_stacktraces       €€€r3   Úappend_stacktrace_summaryz;CodeGen._gen_python_code.<locals>.append_stacktrace_summarya  s÷   ø€ ð ŒwÐ7Ð7Ð7ØÔ#ð AØÔ'¨?Ò:Ð:Ø*.Ô*:˜Ø&(˜å1CÀDÔDTÑ1UÔ1UÐUÐ-ð OØ*<×*LÒ*LÑ*NÔ*N˜KàŸšÐ$E¨#¨#¨d°[Ñ.@Ñ*AÔ*AÐ$EÐ$EÐ$EÑFÔFÐFÐFÐFð ;Ð:ð %¨Ò*Ð*Ø&(�OØ(SÐ%Ø—K’KÐ ? S SÐ):Ñ%;Ô%;Ð ?Ð ?Ð ?Ñ@Ô@Ð@Ð@Ð@ð 8Ð7ð +Ð*r2   Úshapec                 óH   — dd                      d„ | D ¦   «         ¦  «        › d�S )Nr  ré   c              3   ó4   K  — | ]}t          |¦  «        V — Œd S r7   )r/   ©r  r@   s     r3   r4  zDCodeGen._gen_python_code.<locals>.stringify_shape.<locals>.<genexpr>x  s(   è è € Ð 7Ð 7¨A¥ Q¡¤Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7r2   r  )rì   )rs  s    r3   Ústringify_shapez1CodeGen._gen_python_code.<locals>.stringify_shapew  s.   € Ø:�t—y’yÐ 7Ð 7°Ð 7Ñ 7Ô 7Ñ7Ô7Ð:Ð:Ð:Ð:r2   c                 ó¸  •— | j         €dnd ‰| j         ¦  «        › �}‰�r=ddlm} ddlm} | j                             d| j                             d| j                             dd ¦  «        ¦  «        ¦  «        }t          |t          j	        ¦  «        r}‰r ‰| 
                    ¦   «         ¦  «        › nd}‰r|j        › nd}d	 ‰t          |j                 ¦  «        ›  ‰ ‰|j        ¦  «        ¦  «        ›  ‰|¦  «        ›  ‰|¦  «        › d
�}nMt          ||¦  «        rd|› d�}n6t          ||¦  «        r&d	t          |j                 ›  ‰|j        ¦  «        › d
�}| j        dk    r¶t          | j        t"          ¦  «        sJ ‚| j        sdnd ‰| j        d         ¦  «        › �}‰                     | j        › |› |› �¦  «         | j                             dd¦  «        }|t+          | ¦  «        k    r(‰                     t+          | ¦  «        › d|› d�¦  «         d S | j        dk    rŽt          | j        t"          ¦  «        sJ ‚‰                     t+          | ¦  «        › |› dt-           ‰| j        d         ¦  «        | j        ¦  «        › d ‰| j        dd …         | j        ¦  «        › d�¦  «         d S | j        dk    �rºt1          | j        ¦  «        sJ ‚t3          | j        dd¦  «        dk    r‡| j        j        t6          v rtt          | j        t8          ¦  «        sJ ‚‰                     t+          | ¦  «        › |› dt7          | j        j                 j        ˆfd„| j        D ¦   «         Ž › �¦  «         d S t3          | j        dd¦  «        dk    r‚| j        j        t<          v ro‰                     t=          | j        j                 j        ˆfd„| j        D ¦   «         Ž › dt+          | ¦  «        › |› d ‰| j        d         ¦  «        › �¦  «         d S t?          | j        ¦  «        }	 ‰|	| j        ¦  «        }
|
dk    rÉt          | j        t8          ¦  «        r¯t          | j        d         t"          ¦  «        r�| j        d                               ¦   «         rptC          | j        ¦  «        dk    rX‰                     t+          | ¦  «        › |› dt-           ‰| j        d         ¦  «        | j        d         ¦  «        › �¦  «         d S ‰                     t+          | ¦  «        › |› d|
› d ‰| j        | j        ¦  «        › d�¦  «         | j                             dd¦  «        r‰ "                    |
¦  «         d S | j        dk    rrt          | j        t"          ¦  «        sJ ‚‰                     t+          | ¦  «        › |› dt-          ‰| j        ¦  «        › d ‰| j        | j        ¦  «        › d�¦  «         d S | j        d k    rZt          | j        t"          ¦  «        sJ ‚‰                     t+          | ¦  «        › |› dt-          ‰| j        ¦  «        › �¦  «         d S | j        d!k    rR| j         �d" ‰| j         ¦  «        › �‰d<   ‰                     ‰ #                    | j        d         ¦  «        ¦  «         d S tI          d#| j        › d$| j        › �¦  «        ‚)%Nr  z : r   )Úpy_sym_types)ÚTensorMetadataÚvalÚtensor_metaÚexample_valuez: "ú"z: "Sym(z)"r%   rM  Ú*rÔ   r"   rè   r   rê   r!   r,   Ú	_operatorc              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S r7   r1   r1  s     €r3   r4  z>CodeGen._gen_python_code.<locals>.emit_node.<locals>.<genexpr>·  s-   øè è € ÐGhÐGhÐYZÈ	È	ÐRSÉÌÐGhÐGhÐGhÐGhÐGhÐGhr2   c              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S r7   r1   r1  s     €r3   r4  z>CodeGen._gen_python_code.<locals>.emit_node.<locals>.<genexpr>Â  s-   øè è € ÐIjÐIjÐ[\È)È)ÐTUÉ,Ì,ÐIjÐIjÐIjÐIjÐIjÐIjr2   re  rO   rk   Ú
is_wrappedFr$   r#   r&   z -> znode: ú )%r°   Ú"torch.fx.experimental.proxy_tensorry  Útorch.fx.passes.shape_proprz  Úmetar  r6  r<   r>  Ústrider=   Údtype_abbrsrA  rs  rf  r�   r/   ró   rX  Úreplacerñ   r¥   rI  ÚcallablerO   r+   Úmagic_methodsr7  ÚformatÚinplace_methodsr   r¡   rÙ   rW  rò   ÚNotImplementedError)r^  Úmaybe_type_annotationry  rz  Úmeta_valÚstride_annotationÚdevice_annotationÚmaybe_default_argÚraw_namerF  r  rS  r3  r  r#  rk  r&  r'  rå   rÿ   rþ   ræ   r$  r  re   rw  r  rý   Úwrapped_fnss              €€€€€€€€€€€€€€€€€€r3   Ú	emit_nodez+CodeGen._gen_python_code.<locals>.emit_nodez  s  ø€ à”iÐ'��Ð-I°9°9¸T¼YÑ3GÔ3GÐ-IÐ-Ið "ð ñ ràKÐKÐKÐKÐKÐKØEÐEÐEÐEÐEÐEàœ9Ÿ=š=ØØ”I—M’M -°´·²¸ÐPTÑ1UÔ1UÑVÔVñô �õ ˜h­¬Ñ5Ô5ð rð *ð ˜?˜?¨8¯?ª?Ñ+<Ô+<Ñ=Ô=Ð?Ð?àð &ð
 AOÐ(V¨8¬?Ð(<Ð(<ÐTVÐ%ðX˜c˜c¥+¨h¬nÔ"=Ñ>Ô>ð XÀÀÀ_À_ÐU]ÔUcÑEdÔEdÑ@eÔ@eð XØ#˜8Ð$5Ñ6Ô6ðXØ8A¸	ÐBSÑ8TÔ8TðXð Xð Xð *Ð)õ   ¨,Ñ7Ô7ð rØ,B°hÐ,BÐ,BÐ,BÐ)Ð)Ý ¨.Ñ9Ô9ð rØ,qµ+¸h¼nÔ2MÐ,qÈÈÐ_gÔ_mÑOnÔOnÐ,qÐ,qÐ,qÐ)àŒw˜-Ò'Ð'Ý! $¤+­sÑ3Ô3Ð3Ð3Ð3à"œiÐL�B�BÐ-L°9°9¸T¼YÀq¼\Ñ3JÔ3JÐ-LÐ-Lð "ð × Ò Ø”{ÐNÐ$9ÐNÐ;LÐNÐNñô ð ð  œ;×.Ò.¨s°BÑ7Ô7�Ø�t D™zœzÒ)Ð)Ø—K’K¥4¨¡:¤:Ð >Ð >°(Ð >Ð >Ð >Ñ?Ô?Ð?Ø�Ø”˜MÒ)Ð)Ý! $¤+­sÑ3Ô3Ð3Ð3Ð3Ø—’Ý˜D‘z”zð DÐ#8ð Dð D½^ÈIÈIÐVZÔV_Ð`aÔVbÑLcÔLcÐeiÔepÑ=qÔ=qð Dð DØ$˜ T¤Y¨q¨r¨r¤]°D´KÑ@Ô@ðDð Dð Dñô ð ð �Ø”˜OÒ+Ñ+Ý ¤Ñ,Ô,Ð,Ð,Ð,õ ˜DœK¨°rÑ:Ô:¸kÒIÐIØœÔ,µÐ=Ð=å% d¤iµÑ7Ô7Ð7Ð7Ð7Ø—K’KÝ ™:œ:ð lÐ'<ð lð lÝ(¨¬Ô)=Ô>ÔEÐGhÐGhÐGhÐGhÐ^bÔ^gÐGhÑGhÔGhÐiðlð lñô ð ð �Fõ
 ˜DœK¨°rÑ:Ô:¸kÒIÐIØœÔ,µÐ?Ð?à—K’KÝ*¨4¬;Ô+?Ô@ÔGÐIjÐIjÐIjÐIjÐ`dÔ`iÐIjÑIjÔIjÐkð [ð [Ý ™:œ:ð[Ø'<ð[ð [ØAJÀÈ4Ì9ÐUVÌ<ÑAXÔAXð[ð [ñô ð ð �Få!4°T´[Ñ!AÔ!A�Ø(˜j¨¸¼ÑEÔE�ð   9Ò,Ð,Ý" 4¤9­eÑ4Ô4ð -å" 4¤9¨Q¤<µÑ5Ô5ð -ð œ	 !œ×1Ò1Ñ3Ô3ð -õ ˜DœI™œ¨!Ò+Ð+à—K’KÝ ™:œ:ÐxÐ'<ÐxÐxÅÐPYÐPYÐZ^ÔZcÐdeÔZfÑPgÔPgÐimÔirÐstÔiuÑAvÔAvÐxÐxñô ð ð �FØ—’Ý˜D‘z”zÐrÐ#8ÐrÐr¸[ÐrÐrÈ<È<ÐX\ÔXaÐcgÔcnÑKoÔKoÐrÐrÐrñô ð ð ”9—=’= ¨uÑ5Ô5ð 8Ø×*Ò*¨;Ñ7Ô7Ð7Ø�Ø”˜MÒ)Ð)Ý! $¤+­sÑ3Ô3Ð3Ð3Ð3Ø—’Ý˜D‘z”zð jÐ#8ð jð jÝ% k°4´;Ñ?Ô?ðjð jØBNÀ,ÈtÌyÐZ^ÔZeÑBfÔBfðjð jð jñô ð ð �Ø”˜JÒ&Ð&Ý! $¤+­sÑ3Ô3Ð3Ð3Ð3Ø—’Ý˜D‘z”zÐgÐ#8ÐgÐg½^ÈKÐY]ÔYdÑ=eÔ=eÐgÐgñô ð ð �Ø”˜HÒ$Ð$Ø”9Ð(Ø1N¸	¸	À$Ä)Ñ8LÔ8LÐ1NÐ1NÐ+¨AÑ.Ø—’˜D×0Ò0°´¸1´Ñ>Ô>Ñ?Ô?Ð?Ø�Ý%Ð&F¨t¬wÐ&FÐ&F¸¼Ð&FÐ&FÑGÔGÐGr2   z# COUNTER: rÔ   r   zpass
Úwrapc                 ó    •— g | ]
}‰› d |› d�‘ŒS )z("rŸ   r1   )r  r5   Ú	wrap_names     €r3   r  z,CodeGen._gen_python_code.<locals>.<listcomp>  s*   ø€ Ð#UÐ#UÐ#UÀ yÐ$<Ð$<°DÐ$<Ð$<Ð$<Ð#UÐ#UÐ#Ur2   r   z# COUNTER: (\d+)c              3   ó    K  — | ]	}d |z   V — Œ
dS )z    Nr1   )r  rÝ   s     r3   r4  z+CodeGen._gen_python_code.<locals>.<genexpr>  s&   è è € ÐDÐD¨4˜ $™ÐDÐDÐDÐDÐDÐDr2   z

)rœ   )"ÚosÚenvironr  r/   r   r4   rP  r   r   r   r   Úreversedr   ró   rI  r
   Ú	enumeraterX  rÙ   r<   Úfxr˜  rì   rã   rû   rí   Úcountr    r`   Úsearchro   r^   Úlstripr   )4re   Únodesr  r  rý   rþ   rÿ   r   r5   ri   r*   r-  r   r!  r"  rl  rr  r—  ÚiÚ
wrap_stmtsr±   ÚprologueÚ
lineno_mapÚprologue_lenÚ	new_linesÚcur_idxrÝ   ÚcounterrÎ   Úfn_coderS  r3  r  r#  rk  r+  r%  r&  r'  rå   r  ræ   r^  rY  rq  r$  r[  rw  r  rZ  rš  r–  s4   ` ``````                      @@@@@@@@@@@@@@@@@@@@@@r3   Ú_gen_python_codezCodeGen._gen_python_code˜  s÷  øøøøøøøøøøøøøøøøøøøøøøøøøøøøø€ ð  "ˆ	ØˆØ#%ˆØ')ˆð /1¨TÐØ'ð 
ÝŒJ�NŠNÐ1°3Ñ7Ô7¸3Ò>ð 	ð (ð 
ÝŒJ�NŠNÐ1°3Ñ7Ô7¸3Ò>ð 	ð	¥#ð 	­Cð 	ð 	ð 	ð 	ð 	ð 	ð 	õ4 /×4Ò4Ñ6Ô6ð 	"ð 	"‰NˆD‘(�1�cØˆJ�t˜SÑ!Ô!Ð!Ð!ð	+�ð 	+ð 	+ð 	+ð 	+ð 	+ð 	+ð 	+ð> !ØØØØØØ)Ø*Øð

ð 

ˆð	ð 	ð 	ð 	ð 	ð 	ð #Ð" 8Ñ,Ô,ˆØ Ð  Ñ(Ô(ˆØÐ Ñ&Ô&ˆØ!Ð! 'Ñ*Ô*ˆØ%Ð% kÑ2Ô2ˆ	ØÐ Ñ&Ô&ˆØ$Ð$ ZÑ0Ô0ˆØ Ð  Ñ(Ô(ˆð 	'�3ð  	'¥3ð  	'ð  	'ð  	'ð  	'ð  	'ð  	'ð  	'ð  	'ðD	&Ý� #˜Ô&ð	&Ý04µS½(°]Ô0Cð	&åð	&ð 	&ð 	&ð 	&ð 	&ð 	&ð .0ÐØ46Ðð	A¥$ð 	A­dð 	Að 	Að 	Að 	Að 	Að 	Að 	Aõ
 ˜U‘O”Oð 	Hð 	HˆDÝ�D”IÐDÐDÐDÐDÐDÑEÔEÐEÝ�D”KÐ!FÐ!FÐ!FÐ!FÐ!FÑGÔGÐGÐGð	"¥tð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð6 ˆð	A­Dð 	Að 	Að 	Að 	Að 	Að 	Að 	Að 	Að,	;¥8ð 	;µð 	;ð 	;ð 	;ð 	;ðt	H�Dð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hð t	Hõl ! Ñ'Ô'ð 
	'ð 
	'‰GˆAˆtð ð 0Ø)Ð)¨$Ñ/Ô/Ð/ð �KŠKÐ+ aÐ+Ð+Ð+Ñ,Ô,Ð,ØˆI�d‰OŒOˆOØ Ð  Ñ&Ô&Ð&Ð&åˆt‰9Œ9˜Š>ˆ>ð �KŠK˜Ñ!Ô!Ð!åˆ{ÑÔ˜aÒÐØ"˜
 6­5¬8¬=Ñ9Ô9ˆIØŸšÐ#UÐ#UÐ#UÐ#UÈÐ#UÑ#UÔ#UÑVÔVˆJˆJàˆJàÔ!ð 	0Ø×)Ò)¨$Ñ/Ô/ˆDà×2Ò2Ñ4Ô4ð 	$ð 	$‰KˆD�%ØˆJ�t˜UÑ#Ô#Ð#Ð#à—?’? 9Ð.EÀaÔ.HÑIÔIˆð 02ˆ
Ø—~’~ dÑ+Ô+¨aÑ/ˆØ!ˆ	ØˆØ—G’G˜D‘M”M×'Ò'¨Ñ-Ô-ð 	'ð 	'ˆDÝ”iÐ 3°TÑ:Ô:ˆGØð '˜7Ÿ=š=¨Ñ+Ô+Ð7Ý˜gŸmšm¨AÑ.Ô.Ñ/Ô/��à<C�
�3˜y™>œ>¨LÑ8Ñ9Ø× Ò  Ñ&Ô&Ð&Ð&à�yŠy˜Ñ#Ô#×*Ò*¨4Ñ0Ô0ˆØ�yŠyÐDÐD°4·:²:¸dÑ3CÔ3CÐDÑDÔDÑDÔDˆð
Øð
ð 
ð 
ð
ð 
ð ð	
ð 
ˆõ
 ˜' 8¸ÐDÑDÔDÐDr2   N)r+   r,   r-   rf   r   r/   rí   r   rò   r   rö   rù   r   rû   rX   r�   r   r®  r1   r2   r3   r   r   d  so  € € € € € ð)ð )ð )ð
 D¨¤Ið 
Èð 
ÐPSð 
ð 
ð 
ð 
ð-¨8ð -¸ð -ð -ð -ð -ð	 Cð 	¨Cð 	ð 	ð 	ð 	ð sð ¨sð ð ð ð ð D¨¨s°C¨x¬Ô$9ð ð ð ð ð Ø$Ø$ØðMEð MEð MEð ðMEð ð	MEð ðMEð ðMEð ðMEð ðMEð 
ðMEð MEð MEð MEð MEð MEr2   r   c                   óX   ‡ — e Zd Zdefˆ fd„Zdedefd„Zdedefd„Zˆ fd„Zˆ fd	„Z	ˆ xZ
S )
Ú_PyTreeCodeGenÚpytree_infoc                 óV   •— t          ¦   «                              ¦   «          || _        d S r7   )Úsuperrf   r±  )re   r±  r=  s     €r3   rf   z_PyTreeCodeGen.__init__/  s'   ø€ Ý‰Œ×ÒÑÔÐØ(3ˆÔÐÐr2   ÚinputsrA   c                 ó"   — t          j        |Ž }|S r7   )r?   Úarg_tree_leaves)re   r´  Ú	flat_argss      r3   rö   z_PyTreeCodeGen.process_inputs3  s   € ÝÔ*¨FÐ3ˆ	ØÐr2   Úoutc                 óÄ   — | j         �| j         j        €|S t          |t          t          f¦  «        s|g}| j         j        €J ‚t          j        || j         j        ¦  «        S r7   )r±  rÇ   r6  r?  r7  r?   Útree_unflatten©re   r¸  s     r3   rù   z_PyTreeCodeGen.process_outputs7  sc   € ØÔÐ# tÔ'7Ô'@Ð'HØˆJÝ˜#¥¥e˜}Ñ-Ô-ð 	Ø�%ˆCØÔÔ(Ð4Ð4Ð4ÝÔ$ S¨$Ô*:Ô*CÑDÔDÐDr2   c           
      ó²  •— | j         €"t          ¦   «                              ||¦  «        S | j         j        }t	          |¦  «        dk    r|d         dk    nd}|r|                     dd¦  «         t          ¦   «                              |d d …         |¦  «        }t	          |¦  «        dk    �r©| j         j        j        t          k    o^| j         j        j	        dk    oI| j         j        j
        d         j        t          k    o$| j         j        j
        d         j        t          k    }d}dd                     |¦  «        › d	�}|r«| j         j        j
        d         j	        }	| j         j        d |	…         }d
d                     d„ t          | j         j        j
        d         j        | j         j        |	d …         ¦  «        D ¦   «         ¦  «        z   dz   }dd                     |¦  «        › d|› d�}d„ |D ¦   «         }
d„ |D ¦   «         }t	          |¦  «        dk    r|dd                     |¦  «        z   dz   z  }|dd                     |
¦  «        › d|› d�z  }|S )Nr   re   Frk   r   z{}r  ré   z], self._in_specÚ{c              3   ó,   K  — | ]\  }}d |› d|› �V — ŒdS )ú'z':Nr1   )r  rN  rO  s      r3   r4  z,_PyTreeCodeGen.gen_fn_def.<locals>.<genexpr>g  sF   è è € ð  ð  á ˜A˜qð %˜A˜˜ ˜˜ð ð  ð  ð  ð  ð  r2   Ú}z([z], z), self._in_specc                 óD   — g | ]}|                      d ¦  «        d         ‘ŒS )rÐ   r   )r    rv  s     r3   r  z-_PyTreeCodeGen.gen_fn_def.<locals>.<listcomp>v  s&   € Ð!EÐ!EÐ!E°a !§'¢'¨#¡,¤,¨q¤/Ð!EÐ!EÐ!Er2   c                 ó    — g | ]}d |v ¯|dz   ‘ŒS )rÐ   z; r1   rv  s     r3   r  z-_PyTreeCodeGen.gen_fn_def.<locals>.<listcomp>w  s!   € ÐFÐFÐF¨1¸SÀA¸X¸X˜a $™h¸X¸X¸Xr2   ú
    r  rÔ   z , = fx_pytree.tree_flatten_spec(rê   )r±  r³  rí   rÅ   rÙ   rë   rÆ   r°   r7  Únum_childrenÚchildren_specsÚdictrì   ÚzipÚcontext)re   rå   ræ   Úfn_argsÚhas_orig_selfÚfn_definitionÚhas_args_kwargs_tupleÚ	fn_kwargsÚfn_signatureÚ
count_argsÚwithout_annotationÚhas_annotationr=  s               €r3   rí   z_PyTreeCodeGen.gen_fn_def?  s­  ø€ ð  ÔÐ#Ý‘7”7×%Ò% iÐ1HÑIÔIÐIàÔ"Ô,ˆÝ25°g±,´,ÀÒ2BÐ2B˜ œ vÒ-Ð-ÈˆØð 	(Ø×Ò˜Q Ñ'Ô'Ð'Ý™œ×*Ò*¨7°1°1°1¬:Ð7NÑOÔOˆåˆy‰>Œ>˜AÒÑð Ô Ô(Ô-µÒ6ð LØÔ$Ô,Ô9¸QÒ>ðLàÔ$Ô,Ô;¸AÔ>ÔCÅuÒLðLð Ô$Ô,Ô;¸AÔ>ÔCÅtÒKð	 "ð ˆIØC˜tŸyšy¨Ñ1Ô1ÐCÐCÐCˆLØ$ð WØ!Ô-Ô5ÔDÀQÔGÔT�
ØÔ*Ô4°[°j°[ÔA�àØ—i’ið  ð  å$'Ø Ô,Ô4ÔCÀAÔFÔNØ Ô,Ô6°z°{°{ÔCñ%ô %ð ñ  ô  ñ ô ñð ñð ð  W D§I¢I¨gÑ$6Ô$6ÐVÐV¸9ÐVÐVÐV�ð "FÐ!E¸9Ð!EÑ!EÔ!EÐØFÐF°	ÐFÑFÔFˆNÝ�>Ñ"Ô" QÒ&Ð&Ø ¨B¯GªG°NÑ,CÔ,CÑ!CÀdÑ!JÑJ�Øð VØ	‡Y‚YÐ!Ñ"Ô"ðVð VØDPðVð Vð Vñ VˆMàÐr2   c                 ó’   •— | j         r| j         j        rdt          |¦  «        › d�S t          ¦   «                              |¦  «        S )Nzreturn pytree.tree_unflatten(z, self._out_spec))r±  rÇ   rñ   r³  rò   )re   rî   r=  s     €r3   rò   z_PyTreeCodeGen.generate_output~  sL   ø€ ØÔð 	8 Ô 0Ô 9ð 	8ØWµ4¸Ñ3DÔ3DÐWÐWÐWÐWå‘7”7×*Ò*¨;Ñ7Ô7Ð7r2   )r+   r,   r-   rÄ   rf   r   rö   rù   rí   rò   Ú__classcell__)r=  s   @r3   r°  r°  .  sÁ   ø€ € € € € ð4 Kð 4ð 4ð 4ð 4ð 4ð 4ð cð ¨cð ð ð ð ðE 3ð E¨3ð Eð Eð Eð Eð=ð =ð =ð =ð =ð~8ð 8ð 8ð 8ð 8ð 8ð 8ð 8ð 8r2   r°  c                   óŽ   — e Zd ZdZd„ Zdeeee         f         fd„Z	de
fd„Zdeddfd„Zdeddfd	„Zdd
œdeded         fd„ZdS )Ú_FindNodesLookupTablezH
    Side table for the graph for the purpose of doing fast queries
    c                 ó8   — t          t          ¦  «        | _        d S r7   )r   rÆ  Útablerd   s    r3   rf   z_FindNodesLookupTable.__init__Š  s   € ÝKVÝñL
ô L
ˆŒ
ˆ
ˆ
r2   rA   c                 ó8   — |j         |j         dk    r|j        nd fS )Nr!   ©rf  r�   ©re   r^  s     r3   Ú_keyz_FindNodesLookupTable._key�  s!   € Ø”¨¬°?Ò(BÐ(B˜œ˜ÈÐMÐMr2   c                 óF   — || j         |                      |¦  «                 v S r7   ©r×  rÛ  rÚ  s     r3   Ú__contains__z"_FindNodesLookupTable.__contains__’  s   € Ø�t”z $§)¢)¨D¡/¤/Ô2Ð2Ð2r2   r^  Nc                 óL   — d | j         |                      |¦  «                 |<   d S r7   rÝ  rÚ  s     r3   rë   z_FindNodesLookupTable.insert•  s#   € Ø,0ˆŒ
�4—9’9˜T‘?”?Ô# DÑ)Ð)Ð)r2   c                 ól   — | j         |                      |¦  «                                      |¦  «         d S r7   )r×  rÛ  ÚpoprÚ  s     r3   rw   z_FindNodesLookupTable.remove˜  s-   € ØŒ
�4—9’9˜T‘?”?Ô#×'Ò'¨Ñ-Ô-Ð-Ð-Ð-r2   ©r�   rf  r�   r   c                ó  ‡— |dk    r'‰€J ‚g | j         |‰f                              ¦   «         ¢S ‰€#g | j         |d f                              ¦   «         ¢S ˆfd„| j         |d f                              ¦   «         D ¦   «         S )Nr!   c                 ó*   •— g | ]}|j         ‰k    ¯|‘ŒS r1   râ  )r  r^  r�   s     €r3   r  z4_FindNodesLookupTable.find_nodes.<locals>.<listcomp>¤  s&   ø€ ÐXÐXÐX˜À$Ä+ÐQWÒBWÐBW�ÐBWÐBWÐBWr2   )r×  rh  )re   rf  r�   s     `r3   Ú
find_nodesz _FindNodesLookupTable.find_nodes›  s—   ø€ Ø�Ò Ð ØÐ%Ð%Ð%Ø5�T”Z  V Ô-×2Ò2Ñ4Ô4Ð5Ð5àˆ>Ø3�T”Z  T 
Ô+×0Ò0Ñ2Ô2Ð3Ð3ð YÐXÐXÐX ¤¨R°¨JÔ!7×!<Ò!<Ñ!>Ô!>ÐXÑXÔXÐXr2   )r+   r,   r-   r.   rf   r   r/   r   r   rÛ  r�   rÞ  r   rë   rw   rå  r1   r2   r3   rÕ  rÕ  …  sý   € € € € € ðð ð
ð 
ð 
ð
N˜E # x°Ô'7Ð"7Ô8ð Nð Nð Nð Nð3 Dð 3ð 3ð 3ð 3ð1˜4ð 1 Dð 1ð 1ð 1ð 1ð.˜4ð . Dð .ð .ð .ð .ð CGð 	Yð 	Yð 	Y ð 	Y¨X°hÔ-?ð 	Yð 	Yð 	Yð 	Yð 	Yð 	Yr2   rÕ  c                   ó  — e Zd ZdZ ed¬¦  «        	 	 	 dOded         deed                  d	eeee	f                  fd
„¦   «         Z
ed„ ¦   «         Zej        ded         fd„¦   «         Zedefd„¦   «         Z ed¬¦  «        defd„¦   «         Z ed¬¦  «        dddœdeded         defd„¦   «         Z ed¬¦  «        	 dPdd deeef         ddfd„¦   «         ZdQdRd„Z ed¬¦  «        	 	 	 	 dSdedddeed                  deeed f                  d!ee         d"ee	         defd#„¦   «         Z ed¬¦  «        d$„ ¦   «         Z ed¬¦  «        d%„ ¦   «         Z ed¬¦  «        d&eddfd'„¦   «         Z ed¬¦  «        dQd(ee         fd)„¦   «         Z ed¬¦  «        dQd(ee         fd*„¦   «         Z ed¬¦  «        dej        j        fd!ed"ee	         d+e	defd,„¦   «         Z  ed¬¦  «        dQd-ed"ee	         defd.„¦   «         Z! ed¬¦  «        	 	 	 dOd/edeed                  deeed f                  d"ee	         def
d0„¦   «         Z" ed¬¦  «        	 	 	 dOd1edeed                  deeed f                  d"ee	         def
d2„¦   «         Z# ed¬¦  «        	 	 	 dOd3e$d4e	f         deed                  deeed f                  d"ee	         def
d5„¦   «         Z% ed¬¦  «        d6„ fd7ed8e$egd f         defd9„¦   «         Z& ed¬¦  «        dQd:d d"ee	         fd;„¦   «         Z'de(defd<„Z) ed¬¦  «        ddddd=œd>ed?ed@edAedBede*fdC„¦   «         Z+ddddd=œd>edDe,d?ed@edAedBede*fdE„Z-defdF„Z. ed¬¦  «        dG„ ¦   «         Z/ ed¬¦  «        dH„ ¦   «         Z0 ed¬¦  «        	 dQdIee$egef                  defdJ„¦   «         Z1 ed¬¦  «        dKe2fdL„¦   «         Z3 ed¬¦  «        dMe$ee4         ge4f         fdN„¦   «         Z5dS )Tr   a…  
    ``Graph`` is the main data structure used in the FX Intermediate Representation.
    It consists of a series of ``Node`` s, each representing callsites (or other
    syntactic constructs). The list of ``Node`` s, taken together, constitute a
    valid Python function.

    For example, the following code

    .. code-block:: python

        import torch
        import torch.fx


        class MyModule(torch.nn.Module):
            def __init__(self):
                super().__init__()
                self.param = torch.nn.Parameter(torch.rand(3, 4))
                self.linear = torch.nn.Linear(4, 5)

            def forward(self, x):
                return torch.topk(
                    torch.sum(self.linear(x + self.linear.weight).relu(), dim=-1), 3
                )


        m = MyModule()
        gm = torch.fx.symbolic_trace(m)

    Will produce the following Graph::

        print(gm.graph)

    .. code-block:: text

        graph(x):
            %linear_weight : [num_users=1] = self.linear.weight
            %add_1 : [num_users=1] = call_function[target=operator.add](args = (%x, %linear_weight), kwargs = {})
            %linear_1 : [num_users=1] = call_module[target=linear](args = (%add_1,), kwargs = {})
            %relu_1 : [num_users=1] = call_method[target=relu](args = (%linear_1,), kwargs = {})
            %sum_1 : [num_users=1] = call_function[target=torch.sum](args = (%relu_1,), kwargs = {dim: -1})
            %topk_1 : [num_users=1] = call_function[target=torch.topk](args = (%sum_1, 3), kwargs = {})
            return topk_1

    For the semantics of operations represented in the ``Graph``, please see :class:`Node`.
    Tr—   NÚowning_moduler    Ú
tracer_clsr   Útracer_extrasc                 ó   — t          | ddddi ¦  «        | _        i | _        | j        j        | _        d| _        t          ¦   «         | _        || _        || _	        || _
        t          ¦   «         | _        i | _        t          ¦   «         | _        dS )z+
        Construct an empty Graph.
        r  Úrootr1   r   N)r   r¿   r]   Úprependrª   r»   rX   Ú_graph_namespaceÚ_owning_moduleÚ_tracer_clsÚ_tracer_extrasr   Ú_codegenÚ
_co_fieldsrÕ  Ú_find_nodes_lookup_table)re   rç  rè  ré  s       r3   rf   zGraph.__init__Ø  s‚   € õ    b¨&°"°b¸"Ñ=Ô=ˆŒ
Ø+-ˆÔØ”zÔ)ˆŒØˆŒ	Ý *¡¤ˆÔØ+ˆÔØ%ˆÔØ+ˆÔÝ™	œ	ˆŒØ*,ˆŒÝ(=Ñ(?Ô(?ˆÔ%Ð%Ð%r2   c                 ó   — | j         S r7   ©rî  rd   s    r3   rç  zGraph.owning_moduleî  s   € àÔ"Ð"r2   Úmodc                 ó   — || _         d S r7   rõ  )re   rö  s     r3   rç  zGraph.owning_moduleò  s   € à!ˆÔÐÐr2   rA   c                 ó    — t          | ¦  «        S )av  
        Get the list of Nodes that constitute this Graph.

        Note that this ``Node`` list representation is a doubly-linked list. Mutations
        during iteration (e.g. delete a Node, add a Node) are safe.

        Returns:

            A doubly-linked list of Nodes. Note that ``reversed`` can be called on
            this list to switch iteration order.
        )rµ   rd   s    r3   r¤  zGraph.nodesö  s   € õ ˜$ÑÔÐr2   Fc                 ó|   — t          t          t          | j        ¦  «        ¦  «        ¦  «        }|j        dk    sJ ‚|S )Nr&   )ÚnextÚiterrž  r¤  rf  )re   Úoutput_nodes     r3   rü  zGraph.output_node  s:   € å�4¥¨¬Ñ 4Ô 4Ñ5Ô5Ñ6Ô6ˆØŒ~ Ò)Ð)Ð)Ð)ØÐr2   )r�   Úsortrf  r�   r   rý  c                ó`   — | j                              ||¬¦  «        }|rt          |¦  «        S |S )aÜ  
        Allows for fast query of nodes

        Args:

            op (str): the name of the operation

            target (Optional[Target]): the target of the node. For call_function,
                the target is required. For other ops, the target is optional.

            sort (bool): whether to return nodes in the order they appear on
                         on the graph.

        Returns:

            Iteratable of nodes with the requested op and target.
        rÙ  )ró  rå  Úsorted)re   rf  r�   rý  Ú	node_lists        r3   rå  zGraph.find_nodes  s;   € ð* Ô1×<Ò<ÀÈ6Ð<ÑRÔRˆ	Øð 	%Ý˜)Ñ$Ô$Ð$ØÐr2   ÚgÚval_mapzOptional[Argument]c                 óÄ   ‡— |j         D ]V}|‰v rŒ|j        dk    r(t          |j        d         ˆfd„¦  «        }|s|n||fc S |                      |ˆfd„¦  «        ‰|<   ŒWdS )aM  
        Copy all nodes from a given graph into ``self``.

        Args:

            g (Graph): The source graph from which to copy Nodes.

            val_map (Dict[Node, Node]): a dictionary that will be populated with a mapping
                from nodes in ``g`` to nodes in ``self``. Note that ``val_map`` can be passed
                in with values in it already to override copying of certain values.

        Returns:

            The value in ``self`` that is now equivalent to the output value in ``g``,
            if ``g`` had an ``output`` node. ``None`` otherwise.
        r&   r   c                 ó   •— ‰|          S r7   r1   ©rT  r  s    €r3   r_  z"Graph.graph_copy.<locals>.<lambda>=  s   ø€ °W¸Q´Z€ r2   c                 ó   •— ‰|          S r7   r1   r  s    €r3   r_  z"Graph.graph_copy.<locals>.<lambda>?  s   ø€ ¸7À1¼:€ r2   N)r¤  rf  r   ró   Ú	node_copy)re   r  r  Úreturn_output_noder^  Úrvs     `   r3   Ú
graph_copyzGraph.graph_copy%  s‘   ø€ ð( ”Gð 	Gð 	GˆDØ�wˆˆØØŒw˜(Ò"Ð"Ý˜TœY qœ\Ð+?Ð+?Ð+?Ð+?Ñ@Ô@�Ø!3ÐC�r�r¸"¸d¸ÐCÐCÐCØ ŸNšN¨4Ð1EÐ1EÐ1EÐ1EÑFÔFˆG�D‰MˆMØˆtr2   c                 ól  — |r|ni }t          | j        ¬¦  «        }|                     | |d¬¦  «        }t          j        | j        ¦  «        |_        |�`t          |t          ¦  «        sJ ‚|\  }}|                     |t          |dd¦  «        ¬¦  «        }t          j        |j
        ¦  «        |_
        |S )a’  
        Explicitly implement __deepcopy__ to prevent excessive recursion depth
        from the default implementation. This uses graph_copy to copy the nodes
        in an iterative way, rather than recursive. It also populates the
        memoization table to prevent unnecessary copies (e.g. references to
        nodes or other parts of the Graph from a custom GraphModule implementation.
        )rè  T)r  r  Nr°   ©Ú	type_expr)r   rï  r
  ÚcopyÚdeepcopyrñ  r6  r7  r&   rO   r‡  )re   Úmemor  Úoutput_valsÚ
output_valÚold_output_nodeÚnew_output_nodes          r3   Ú__deepcopy__zGraph.__deepcopy__B  sº   € ð Ð#ˆtˆt ˆÝ˜TÔ-Ð.Ñ.Ô.ˆØ—l’l 4°È$�lÑOÔOˆÝ”] 4¤=Ñ1Ô1ˆŒ
ØÐ"Ý˜k­5Ñ1Ô1Ð1Ð1Ð1Ø*5Ñ'ˆJ˜ØŸhšhØ¥g¨o¸vÀtÑ&LÔ&Lð 'ñ ô ˆOõ $(¤9¨_Ô-AÑ#BÔ#BˆOÔ Øˆr2   ró   )r   .rI  r   r5   r  c           	      ód  — |t           v sJ ‚|€dn|}|€i n|}t          |t          ¦  «        s
J d¦   «         ‚t          |t          ¦  «        s
J d¦   «         ‚|�|n|                      |¦  «        }| j                             |d¦  «        }t          | ||||||¦  «        }| j        �0t          | j        dd¦  «        �| j        j
        D ]}	 |	|¦  «         Œ| j                             ||¦  «         |                      |¦  «         | j                             |¦  «         | xj        dz  c_        |S )a&  
        Create a ``Node`` and add it to the ``Graph`` at the current insert-point.
        Note that the current insert-point can be set via :meth:`Graph.inserting_before`
        and :meth:`Graph.inserting_after`.

        Args:
            op (str): the opcode for this Node. One of 'call_function', 'call_method', 'get_attr',
                'call_module', 'placeholder', or 'output'. The semantics of these opcodes are
                described in the ``Graph`` docstring.

            args (Optional[Tuple[Argument, ...]]): is a tuple of arguments to this node.

            kwargs (Optional[Dict[str, Argument]]): the kwargs of this Node

            name (Optional[str]): an optional string name for the ``Node``.
                This will influence the name of the value assigned to in the
                Python generated code.

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have.

        Returns:

            The newly-created and inserted node.
        Nr1   zargs must be a tuplezkwargs must be a dictÚ_create_node_hooksr   )Ú
_legal_opsr6  r7  rÆ  Ú_target_to_strrí  ru   r   rç  rO   r  ry   rª   ró  rë   r»   )
re   rf  r�   ró   rI  r5   r  rg   rT  r,  s
             r3   Úcreate_nodezGraph.create_nodeW  sS  € ðF •ZÐÐÐÐØ�\ˆrˆr tˆØ�~��¨6ˆÝ˜$¥Ñ&Ô&Ð>Ð>Ð(>Ñ>Ô>Ð&Ý˜&¥$Ñ'Ô'Ð@Ð@Ð)@Ñ@Ô@Ð'à Ð,�D�D°$×2EÒ2EÀfÑ2MÔ2Mˆ	ØÔ$×0Ò0°¸DÑAÔAˆÝ��t˜R ¨¨v°yÑAÔAˆð ÔÐ*Ý˜Ô*Ð,@À$ÑGÔGÐSàÔ'Ô:ð ð �Ø��!‘”��àÔ×5Ò5°d¸AÑ>Ô>Ð>à�Š�Q‰ŒˆØÔ%×,Ò,¨QÑ/Ô/Ð/Øˆ	Œ	�Q‰ˆ	Œ	Øˆr2   c                 ó    —  | j         j        |Ž S )zL
        Processes args so that they can be passed to the FX graph.
        )rñ  rö   rõ   s     r3   rö   zGraph.process_inputs’  s   € ð
 ,ˆtŒ}Ô+¨TÐ2Ð2r2   c                 ó6   — | j                              |¦  «        S r7   )rñ  rù   r»  s     r3   rù   zGraph.process_outputs™  s   € àŒ}×,Ò,¨SÑ1Ô1Ð1r2   Úto_erasec           	      óÜ  — t          |j        ¦  «        dk    r0t          d|› dt          |j        ¦  «        › d|j        › d�¦  «        ‚|j        | k    rt          d|› d�¦  «        ‚|j        rt          j        d|› d	�¦  «         d
S | j        �0t          | j        dd
¦  «        �| j        j	        D ]} ||¦  «         Œ| j
                             |¦  «         |                     ¦   «          d|_        | xj        dz  c_        t          |j        d„ ¦  «        }t!          |t"          ¦  «        sJ ‚||_        t          |j        d„ ¦  «        }t!          |t&          ¦  «        sJ ‚||_        d
S )zâ
        Erases a ``Node`` from the ``Graph``. Throws an exception if
        there are still users of that node in the ``Graph``.

        Args:

            to_erase (Node): The ``Node`` to erase from the ``Graph``.
        r   zTried to erase Node z but it still had z users in the graph: ú!zAttempting to remove z from wrong graph!zerase_node(z) on an already erased nodeNÚ_erase_node_hooksTr   c                 ó   — d S r7   r1   ©rT  s    r3   r_  z"Graph.erase_node.<locals>.<lambda>À  s   € °D€ r2   c                 ó   — d S r7   r1   r"  s    r3   r_  z"Graph.erase_node.<locals>.<lambda>Ã  s   € ¸€ r2   )rÙ   rg  ÚRuntimeErrorr©   Ú_erasedÚwarningsÚwarnrç  rO   r   ró  rw   Ú_remove_from_listr»   r   ró   r6  r7  rI  rÆ  )re   r  r,  Únew_argsÚ
new_kwargss        r3   Ú
erase_nodezGraph.erase_node�  s¦  € õ ˆxŒ~ÑÔ Ò"Ð"Ýð9 xð 9ð 9Å3ÀxÄ~ÑCVÔCVð 9ð 9Ø'/¤~ð9ð 9ð 9ñô ð ð Œ>˜TÒ!Ð!ÝÐS°xÐSÐSÐSÑTÔTÐTØÔð 	ÝŒMÐM¨ÐMÐMÐMÑNÔNÐNØˆFð ÔÐ*Ý˜Ô*Ð,?ÀÑFÔFÐRàÔ'Ô9ð ð �Ø��(‘”��àÔ%×,Ò,¨XÑ6Ô6Ð6Ø×"Ò"Ñ$Ô$Ð$ØˆÔØˆ	Œ	�Q‰ˆ	Œ	õ ˜8œ=¨.¨.Ñ9Ô9ˆÝ˜(¥EÑ*Ô*Ð*Ð*Ð*Ø ˆŒÝ˜Xœ_¨n¨nÑ=Ô=ˆ
Ý˜*¥dÑ+Ô+Ð+Ð+Ð+Ø$ˆŒˆˆr2   rT  c                 óŽ   — |€|                       | j        ¦  «        S |j        | k    s
J d¦   «         ‚t          | |j        ¦  «        S )aÚ  Set the point at which create_node and companion methods will insert into the graph.
        When used within a 'with' statement, this will temporary set the insert point and
        then restore it when the with statement exits::

            with g.inserting_before(n):
                ...  # inserting before node n
            ...  # insert point restored to what it was previously
            g.inserting_before(n)  #  set the insert point permanently

        Args:

            n (Optional[Node]): The node before which to insert. If None this will insert before
                the beginning of the entire graph.

        Returns:
            A resource manager that will restore the insert point on ``__exit__``.
        Nz&Node to insert before is not in graph.)Úinserting_afterr¿   r©   r§   rì  ©re   rT  s     r3   Úinserting_beforezGraph.inserting_beforeÇ  sG   € ð& ˆ9Ø×'Ò'¨¬
Ñ3Ô3Ð3ØŒw˜$ŠˆˆÐ H‰ŒˆÝ˜D !¤)Ñ,Ô,Ð,r2   c                 óŽ   — |€|                       | j        ¦  «        S |j        | k    s
J d¦   «         ‚t          | |j        ¦  «        S )aÖ  Set the point at which create_node and companion methods will insert into the graph.
        When used within a 'with' statement, this will temporary set the insert point and
        then restore it when the with statement exits::

            with g.inserting_after(n):
                ...  # inserting after node n
            ...  # insert point restored to what it was previously
            g.inserting_after(n)  #  set the insert point permanently

        Args:

            n (Optional[Node]): The node before which to insert. If None this will insert after
                the beginning of the entire graph.

        Returns:
            A resource manager that will restore the insert point on ``__exit__``.
        Nz%Node to insert after is not in graph.)r/  r¿   r©   r§   rX  r.  s     r3   r-  zGraph.inserting_afterß  sG   € ð& ˆ9Ø×(Ò(¨¬Ñ4Ô4Ð4ØŒw˜$ŠˆˆÐ G‰ŒˆÝ˜D !¤(Ñ+Ô+Ð+r2   Údefault_valuec                 ód   — |t           j        j        u rdn|f}|                      d|||¬¦  «        S )a%  
        Insert a ``placeholder`` node into the Graph. A ``placeholder`` represents
        a function input.

        Args:

            name (str): A name for the input value. This corresponds to the name
                of the positional argument to the function this ``Graph`` represents.

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have. This is needed in some
                cases for proper code generation (e.g. when the function is used
                subsequently in TorchScript compilation).

            default_value (Any): The default value this function argument should take
                on. NOTE: to allow for `None` as a default value, `inspect.Signature.empty`
                should be passed as this argument to specify that the parameter does _not_
                have a default value.

        .. note::
            The same insertion point and type expression rules apply for this method
            as ``Graph.create_node``.
        r1   r%   )ró   r  )ÚinspectÚ	SignatureÚemptyr  )re   r5   r  r1  ró   s        r3   r%   zGraph.placeholder÷  s=   € ð< #¥gÔ&7Ô&=Ð=Ð=ˆrˆrÀMÐCSˆØ×Ò ¨t¸$È)ÐÑTÔTÐTr2   rF  c                 óÔ   — dt           j        j        dt          dt          fd„}| j        r' || j        |¦  «        st          j        dd¬¦  «         |                      d||¬	¦  «        S )
aˆ  
        Insert a ``get_attr`` node into the Graph. A ``get_attr`` ``Node`` represents the
        fetch of an attribute from the ``Module`` hierarchy.

        Args:

            qualified_name (str): the fully-qualified name of the attribute to be retrieved.
                For example, if the traced Module has a submodule named ``foo``, which has a
                submodule named ``bar``, which has an attribute named ``baz``, the qualified
                name ``foo.bar.baz`` should be passed as ``qualified_name``.

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have.


        Returns:

            The newly-created and inserted ``get_attr`` node.

        .. note::
            The same insertion point and type expression rules apply for this method
            as ``Graph.create_node``.
        rö  rF  rA   c                 óŽ  — |                      d¦  «        \  }}}	 |                      |¦  «        }n)# t          $ r t          j        d|› d�¦  «         Y dS w xY wt          ||¦  «        sdS t          ||¦  «        }t          |t          j	        j
        ¦  «        s*t          |t          j	        j        ¦  «        s||j        vrdS dS )NrN   zFailed to fetch module r  FT)Ú
rpartitionÚget_submoduleÚAttributeErrorr&  r'  r  rO   r6  r<   rQ   ÚModuleÚ	ParameterÚ_buffers)rö  rF  Úmodule_pathri   r5   ÚsubmodÚress          r3   Ú_get_attr_reference_existsz2Graph.get_attr.<locals>._get_attr_reference_exists2  sæ   € ð $2×#<Ò#<¸SÑ#AÔ#AÑ ˆK˜˜DðØ*-×*;Ò*;¸KÑ*HÔ*H��øÝ!ð ð ð Ý”ÐF¸ÐFÐFÐFÑGÔGÐGØ�u�uðøøøõ ˜6 4Ñ(Ô(ð Ø�uå˜& $Ñ'Ô'ˆCõ ˜s¥E¤H¤OÑ4Ô4ðå" 3­¬Ô(:Ñ;Ô;ðð  ¤Ð/Ð/à�uà�4s   ›1 ±"AÁAa  Attempted to insert a get_attr Node with no underlying reference in the owning GraphModule! Call GraphModule.add_submodule to add the necessary submodule, GraphModule.add_parameter to add the necessary Parameter, or nn.Module.register_buffer to add the necessary bufferrk   )Ú
stacklevelr#   r  )	r<   rQ   r;  r/   r�   rç  r&  r'  r  )re   rF  r  rA  s       r3   r#   zGraph.get_attr  sž   € ð4	Ý””ð	Ý25ð	åð	ð 	ð 	ð 	ð2 Ôð 	Ð&@Ð&@ØÔ ñ'
ô '
ð 	õ ŒMð#ð ðñ ô ð ð ×Ò 
¨NÀiÐÑPÔPÐPr2   rS   c                 ó    — | j         r.| j                              |¦  «        €t          j        d¦  «         |                      d||||¬¦  «        S )a÷  
        Insert a ``call_module`` ``Node`` into the ``Graph``. A ``call_module`` node
        represents a call to the forward() function of a ``Module`` in the ``Module``
        hierarchy.

        Args:

            module_name (str): The qualified name of the ``Module`` in the ``Module``
                hierarchy to be called. For example, if the traced ``Module`` has a
                submodule named ``foo``, which has a submodule named ``bar``, the
                qualified name ``foo.bar`` should be passed as ``module_name`` to
                call that module.

            args (Optional[Tuple[Argument, ...]]): The positional arguments to be passed
                to the called method. Note that this should *not* include a ``self`` argument.

            kwargs (Optional[Dict[str, Argument]]): The keyword arguments to be passed
                to the called method

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have.

        Returns:

            The newly-created and inserted ``call_module`` node.

        .. note::
            The same insertion point and type expression rules apply for this method
            as :meth:`Graph.create_node`.
        NzœAttempted to insert a call_module Node with no underlying reference in the owning GraphModule! Call GraphModule.add_submodule to add the necessary submoduler$   r  )rç  r9  r&  r'  r  )re   rS   ró   rI  r  s        r3   r$   zGraph.call_module\  si   € ðL Ôð 	 $Ô"4×"BÒ"BÀ;Ñ"OÔ"OÐ"WÝŒMð&ñô ð ð ×ÒØ˜;¨¨fÀ	ð  ñ 
ô 
ð 	
r2   Úmethod_namec                 ó6   — |                       d||||¬¦  «        S )aj  
        Insert a ``call_method`` ``Node`` into the ``Graph``. A ``call_method`` node
        represents a call to a given method on the 0th element of ``args``.

        Args:

            method_name (str): The name of the method to apply to the self argument.
                For example, if args[0] is a ``Node`` representing a ``Tensor``,
                then to call ``relu()`` on that ``Tensor``, pass ``relu`` to ``method_name``.

            args (Optional[Tuple[Argument, ...]]): The positional arguments to be passed
                to the called method. Note that this *should* include a ``self`` argument.

            kwargs (Optional[Dict[str, Argument]]): The keyword arguments to be passed
                to the called method

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have.

        Returns:

            The newly created and inserted ``call_method`` node.

        .. note::
            The same insertion point and type expression rules apply for this method
            as :meth:`Graph.create_node`.
        r"   r  ©r  )re   rD  ró   rI  r  s        r3   r"   zGraph.call_methodŽ  s-   € ðF ×ÒØ˜;¨¨fÀ	ð  ñ 
ô 
ð 	
r2   Úthe_function.c                 ó6   — |                       d||||¬¦  «        S )a  
        Insert a ``call_function`` ``Node`` into the ``Graph``. A ``call_function`` node
        represents a call to a Python callable, specified by ``the_function``.

        Args:

            the_function (Callable[..., Any]): The function to be called. Can be any PyTorch
                operator, Python function, or member of the ``builtins`` or ``operator``
                namespaces.

            args (Optional[Tuple[Argument, ...]]): The positional arguments to be passed
                to the called function.

            kwargs (Optional[Dict[str, Argument]]): The keyword arguments to be passed
                to the called function

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have.

        Returns:

            The newly created and inserted ``call_function`` node.

        .. note::
            The same insertion point and type expression rules apply for this method
            as :meth:`Graph.create_node`.
        r!   r  rF  )re   rG  ró   rI  r  s        r3   r!   zGraph.call_functionµ  s-   € ðF ×ÒØ˜\¨4°À9ð  ñ 
ô 
ð 	
r2   c                 ó   — | S r7   r1   rF   s    r3   r_  zGraph.<lambda>Þ  s   € ÐRS€ r2   r^  Úarg_transformc                 óN  — t          |j        |¦  «        }t          |j        |¦  «        }t          |t          ¦  «        sJ ‚t          |t
          ¦  «        sJ ‚|                      |j        |j        |||j	        |j
        ¦  «        }t          j        |j        ¦  «        |_        |S )aw  
        Copy a node from one graph into another. ``arg_transform`` needs to transform arguments from
        the graph of node to the graph of self. Example::

            # Copying all the nodes in `g` into `new_graph`
            g: torch.fx.Graph = ...
            new_graph = torch.fx.graph()
            value_remap = {}
            for node in g.nodes:
                value_remap[node] = new_graph.node_copy(node, lambda n: value_remap[n])

        Args:

            node (Node): The node to copy into ``self``.

            arg_transform (Callable[[Node], Argument]): A function that transforms
                ``Node`` arguments in node's ``args`` and ``kwargs`` into the
                equivalent argument in ``self``. In the simplest case, this should
                retrieve a value out of a table mapping Nodes in the original
                graph to ``self``.
        )r   ró   rI  r6  r7  rÆ  r  rf  r�   r5   r°   r  r‡  )re   r^  rJ  ró   rI  Úresult_nodes         r3   r  zGraph.node_copyÜ  s˜   € õ2 �t”y -Ñ0Ô0ˆÝ˜œ mÑ4Ô4ˆÝ˜$¥Ñ&Ô&Ð&Ð&Ð&Ý˜&¥$Ñ'Ô'Ð'Ð'Ð'Ø×&Ò&ØŒG�T”[ $¨°´	¸4¼9ñ
ô 
ˆõ  œ9 T¤YÑ/Ô/ˆÔØÐr2   Úresultc                 ó6   — |                       dd|f|¬¦  «        S )a5  
        Insert an ``output`` ``Node`` into the ``Graph``. An ``output`` node represents
        a ``return`` statement in Python code. ``result`` is the value that should
        be returned.

        Args:

            result (Argument): The value to be returned.

            type_expr (Optional[Any]): an optional type annotation representing the
                Python type the output of this node will have.

        .. note::

            The same insertion point and type expression rules apply for this method
            as ``Graph.create_node``.
        r&   )rf  r�   ró   r  rF  )re   rM  r  s      r3   r&   zGraph.outputÿ  s,   € ð& ×ÒØ °¨yÀIð  ñ 
ô 
ð 	
r2   c                 ó¶   — t          |¦  «        r|j        }n2t          |t          ¦  «        sJ ‚|}t	          |¦  «        r
|dd…         }t          |¦  «        }|S )Nrk   éþÿÿÿ)r‹  r+   r6  r/   rG   rL   )re   r�   rf  s      r3   r  zGraph._target_to_str  sa   € Ý�FÑÔð 	Ø”ˆBˆBå˜f¥cÑ*Ô*Ð*Ð*Ð*ØˆBÝ˜‰}Œ}ð Ø˜˜"˜”X�Ý˜‰_Œ_ˆØˆ	r2   rü   r  rý   rþ   rÿ   r   c          	      óð   ‡‡— t          ¦   «         Šdt          fˆfd„Št          dt          fˆfd„¦   «         } || ¦  «        5  |                      |‰||||¬¦  «        cddd¦  «         S # 1 swxY w Y   dS )aÑ  
        Turn this ``Graph`` into valid Python code.

        Args:

            root_module (str): The name of the root module on which to look-up
                qualified name targets. This is usually 'self'.

        Returns:

            A PythonCode object, consisting of two fields:
                src: the Python source code representing the object
                globals: a dictionary of global names in `src` -> the objects that they reference.
        rT  c                 ó:   •— ‰                      | j        | ¦  «        S r7   )ru   r5   )rT  r  s    €r3   Ú	node_reprz$Graph.python_code.<locals>.node_reprT  s   ø€ Ø×(Ò(¨¬°Ñ3Ô3Ð3r2   r©   c              3   ó¶   •K  — i }| j         D ]}|j        ||<   ‰|_        Œ	 d V — | j         D ]}||         |_        Œd S # | j         D ]}||         |_        Œw xY wr7   )r¤  Ú_repr_fn)r©   Úorig_repr_fnsr^  rS  s      €r3   Úoverride_node_reprz-Graph.python_code.<locals>.override_node_reprW  s’   øè è € àˆMØœð *ð *�Ø&*¤m�˜dÑ#Ø )�”�ð8Ø�
�
�
ð "œKð 8ð 8�DØ$1°$Ô$7�D”M�Mð8ð 8ø˜EœKð 8ð 8�DØ$1°$Ô$7�D”M�Mð8øøøs	   ¢? ¿Arü   N)rX   r   r   r   Ú_python_code)	re   r  rý   rþ   rÿ   r   rW  r  rS  s	          @@r3   Úpython_codezGraph.python_code!  s  øø€ õX ‘L”Lˆ	ð	4�ð 	4ð 	4ð 	4ð 	4ð 	4ð 	4õ 
ð
	8¥eð 
	8ð 
	8ð 
	8ð 
	8ð 
	8ñ 
Œð
	8ð  Ð Ñ%Ô%ð 	ð 	Ø×$Ò$ØØØØ-Ø-Øð %ñ ô ð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   ÁA+Á+A/Á2A/r  c          	      óN   — | j                              | j        ||||||¬¦  «        S )Nrü   )rñ  r®  r¤  )re   r  r  rý   rþ   rÿ   r   s          r3   rX  zGraph._python_coden  s:   € ð Œ}×-Ò-ØŒJØØØØ)Ø)Øð .ñ 
ô 
ð 	
r2   c                 óž   ‡— g Šdg}ˆfd„| j         D ¦   «         }d                     ‰¦  «        }d|› d|d         › d�}|D ]}|r|d|z   z  }Œ|S )	zl
        Return a human-readable (not machine-readable) string representation
        of this Graph
        r  c                 ó:   •— g | ]}|                      ‰¦  «        ‘ŒS r1   )Úformat_node)r  r^  Úplaceholder_namess     €r3   r  z!Graph.__str__.<locals>.<listcomp>Œ  s(   ø€ ÐPÐPÐP¸T�T×%Ò%Ð&7Ñ8Ô8ÐPÐPÐPr2   ré   zgraph(rê   r   rÐ   rÃ  )r¤  rì   )re   Úmaybe_return_typenameÚ	node_strsÚ	param_strrH   Únode_strr^  s         @r3   Ú__str__zGraph.__str__‚  sŒ   ø€ ð
 (*Ðð -/¨4ÐàPÐPÐPÐPÀTÄZÐPÑPÔPˆ	Ø—I’IÐ/Ñ0Ô0ˆ	Ø<�YÐ<Ð<Ð!6°qÔ!9Ð<Ð<Ð<ˆØ!ð 	)ð 	)ˆHØð )Ø�X Ñ(Ñ(�øØˆr2   c                 ó¬   — 	 ddl m } n# t          $ r t          d¦  «         ‚ w xY wd„ | j        D ¦   «         }t           ||g d¢¬¦  «        ¦  «         dS )z­
        Prints the intermediate representation of the graph in tabular
        format. Note that this API requires the ``tabulate`` module to be
        installed.
        r   )ÚtabulatezŽ`print_tabular` relies on the library `tabulate`, which could not be found on this machine. Run `pip install tabulate` to install the library.c                 óN   — g | ]"}|j         |j        |j        |j        |j        g‘Œ#S r1   )rf  r5   r�   ró   rI  rc  s     r3   r  z'Graph.print_tabular.<locals>.<listcomp>¥  s-   € ÐUÐUÐUÀQ�q”t˜QœV Q¤X¨q¬v°q´xÐ@ÐUÐUÐUr2   )Úopcoder5   r�   ró   rI  )ÚheadersN)re  ÚImportErrorÚprintr¤  )re   re  Ú
node_specss      r3   Úprint_tabularzGraph.print_tabular”  s    € ð	Ø)Ð)Ð)Ð)Ð)Ð)Ð)øÝð 	ð 	ð 	Ýð<ñô ð ð
 ð	øøøð VÐUÈ$Ì*ÐUÑUÔUˆ
ÝØˆH�ZÐ)WÐ)WÐ)WÐXÑXÔXñ	
ô 	
ð 	
ð 	
ð 	
s   ‚	 ‰$c                 óæ  ‡ ‡
‡‡— d#dt           dt          t                    ddfˆˆ fd„Š
t          ¦   «         }t          ¦   «         Š‰ j        D ]àŠ‰j        dvrt          d‰› d‰j        › d	�¦  «        ‚‰j        ‰ urt          d
‰› d�¦  «        ‚‰‰ j        vrt          d
‰› d�¦  «        ‚t          ‰j	        ˆ
ˆfd„¦  «         t          ‰j
        ˆ
ˆfd„¦  «         ‰                     ‰¦  «         ‰j        |v rt          d‰j        › d	�¦  «        ‚|                     ‰j        ¦  «         Œá‰ j        �r;d}d}‰ j        D �]Š‰j        dk    rJt          ‰j        ¦  «        s5t!          d‰› d‰j        › dt#          j        ‰j        ¦  «        › d�¦  «        ‚nOt'          ‰j        t(          ¦  «        s5t!          d‰› d‰j        › dt#          j        ‰j        ¦  «        › d�¦  «        ‚‰j        dv �rZ‰j                             d¦  «        }‰ j        }t-          |¦  «        D �](\  }}t/          ||d¦  «        }d                     |d|…         ¦  «        }	|€ t          d‰› d‰j        › d|› d|	› �¦  «        ‚‰j        dk    r@t'          |t"          j        j        ¦  «        s!t          d‰› d‰j        › d|› d|	› d�	¦  «        ‚‰j        dk    rzt'          |t"          j        j        ¦  «        s[t'          |t"          j        j        ¦  «        s<||j        vr3||k     r&t;          j        d‰› d‰j        › d|› d|	› d�	¦  «         |d z  }�Œ&|}�Œ*�Œ||k    rt;          j        d!||z
  › d"�¦  «         dS dS dS )$aJ  
        Runs various checks on this Graph to make sure it is well-formed. In
        particular:
        - Checks Nodes have correct ownership (owned by this graph)
        - Checks Nodes appear in topological order
        - If this Graph has an owning GraphModule, checks that targets
        exist in that GraphModule
        Nr  rT  rA   c                 ó–   •— |rd|› d�nd}| j         ‰urt          d| › d|› d‰› �¦  «        ‚| ‰vrt          d| › d|› d‰› �¦  «        ‚d S )Nz
 of Node 'z' r„  z
Argument 'r¿  z«does not belong to this Graph, but was used as an argument! If you are copying nodes from another graph, make sure to use ``arg_transform`` on node_copy() to remap values
zdwas used before it has been defined! Please check that Nodes in the graph are topologically ordered
)r©   r$  )r  rT  Úcontext_strÚseen_valuesre   s      €€r3   Ú	check_argzGraph.lint.<locals>.check_arg¶  sÆ   ø€ Ø01Ð:Ð, qÐ,Ð,Ð,Ð,°sˆKØŒy Ð$Ð$Ý"ð\ ð \ð \ {ð \ð \àUYð\ð \ñô ð ð
 ˜+Ð%Ð%Ý"ðg ð gð g {ð gð gØ`dðgð gñô ð ð &Ð%r2   )r%   r"   r$   r!   r#   r&   zNode z had unknown opcode r  zNode 'z ' does not belong to this Graph!z ' is not added to the side tablec                 ó   •—  ‰| ‰¦  «        S r7   r1   ©r  rq  r^  s    €€r3   r_  zGraph.lint.<locals>.<lambda>Ô  s   ø€ ¨9¨9°S¸$Ñ+?Ô+?€ r2   c                 ó   •—  ‰| ‰¦  «        S r7   r1   rs  s    €€r3   r_  zGraph.lint.<locals>.<lambda>Õ  s   ø€ ¨Y¨Y°s¸DÑ-AÔ-A€ r2   zNode redefined name r   é   r!   z target z
 has type z but a Callable is expectedz but a str is expected)r#   r$   rN   z" references nonexistent attribute z of r$   r„  z  does not reference an nn.Moduler#   zj does not reference an nn.Module, nn.Parameter, or buffer, which is what 'get_attr' Nodes typically targetr   zAdditional z. warnings suppressed about get_attr referencesr7   )r   r   r[   r¤  rf  r$  r©   ró  r   ró   rI  rq   r5   rç  r‹  r�   Ú
ValueErrorr<   r  r6  r/   r    rŸ  rO   rì   rQ   r;  r<  r=  r&  r'  )re   Ú
seen_namesÚnum_warningsÚMAX_WARNINGSÚtarget_atomsÚm_itrr¥  ÚatomÚ	new_m_itrÚseen_qualnamerq  r^  rp  s   `         @@@r3   Úlintz
Graph.lintª  sã  øøøø€ ð	ð 	�4ð 	¥H­T¤Nð 	¸dð 	ð 	ð 	ð 	ð 	ð 	ð 	õ  #™uœuˆ
Ý!$¡¤ˆØ”Jð 	&ð 	&ˆDØŒwð ð ð õ #Ð#O¨4Ð#OÐ#OÀTÄWÐ#OÐ#OÐ#OÑPÔPÐPØŒz Ð%Ð%Ý"Ð#R¨DÐ#RÐ#RÐ#RÑSÔSÐSØ˜4Ô8Ð8Ð8Ý"Ð#R¨DÐ#RÐ#RÐ#RÑSÔSÐSÝ�D”IÐ?Ð?Ð?Ð?Ð?Ñ@Ô@Ð@Ý�D”KÐ!AÐ!AÐ!AÐ!AÐ!AÑBÔBÐBØ�OŠO˜DÑ!Ô!Ð!àŒy˜JÐ&Ð&Ý"Ð#F¸$¼)Ð#FÐ#FÐ#FÑGÔGÐGØ�NŠN˜4œ9Ñ%Ô%Ð%Ð%ð Ôñ 8	ØˆLØˆLØœ
ð 0.ñ 0.�Ø”7˜oÒ-Ð-Ý# D¤KÑ0Ô0ð Ý(ð5 Dð 5ð 5°$´+ð 5ð 5ÍÌÐX\ÔXcÑIdÔIdð 5ð 5ð 5ñô ð ðõ & d¤kµ3Ñ7Ô7ð Ý(ð0 Dð 0ð 0°$´+ð 0ð 0ÍÌÐX\ÔXcÑIdÔIdð 0ð 0ð 0ñô ð ð ”7Ð9Ð9Ñ9Ø#'¤;×#4Ò#4°SÑ#9Ô#9�LØ Ô.�EÝ#,¨\Ñ#:Ô#:ð  .ñ  .™˜˜4Ý$+¨E°4¸Ñ$>Ô$>˜	Ø(+¯ª°¸b¸q¸bÔ1AÑ(BÔ(B˜Ø$Ð,Ý".ð!=¨ð !=ð !=°d´kð !=ð !=Ø#'ð!=ð !=Ø-:ð!=ð !=ñ#ô #ð ð  œ7 mÒ3Ð3½JØ%¥u¤x¤ñ=ô =Ð3õ #/ð!=¨ð !=ð !=°d´kð !=ð !=ÀDð !=ð !=Èmð !=ð !=ð !=ñ#ô #ð ð
 !œG zÒ1Ð1Ý$.¨y½%¼(¼/Ñ$JÔ$Jð 2å$.¨y½%¼(Ô:LÑ$MÔ$Mð 2ð !%¨E¬NÐ :Ð :à+¨lÒ:Ð:õ !)¤ð%M¨Dð %Mð %M¸$¼+ð %Mð %MÈð %Mð %MÐR_ð %Mð %Mð %Mñ!"ô !"ð !"ð
 )¨AÑ-˜L™Là$-˜E™EùØ˜lÒ*Ð*Ý”ð; ,°Ñ"=ð ;ð ;ð ;ñô ð ð ð ðk8	ð 8	ðh +Ð*r2   Úis_impure_nodec                 óà   ‡— |                       ¦   «          ˆfd„}d}t          | j        ¦  «        D ]<} ||¦  «        s/t          |j        ¦  «        dk    r|                      |¦  «         d}Œ=|S )aÒ  
        Remove all dead code from the graph, based on each node's number of
        users, and whether the nodes have any side effects. The graph must be
        topologically sorted before calling.

        Args:
            is_impure_node (Optional[Callable[[Node], bool]]): A function that returns
            whether a node is impure. If this is None, then the default behavior is to
            use Node.is_impure.

        Returns:
          bool: Whether the graph was changed as a result of the pass.

        Example:

        Before dead code is eliminated, `a` from `a = x + 1` below has no users
        and thus can be eliminated from the graph without having an effect.

        .. code-block:: python

            def forward(self, x):
                a = x + 1
                return x + self.attr_1

        After dead code is eliminated, `a = x + 1` has been removed, and the rest
        of `forward` remains.

        .. code-block:: python

            def forward(self, x):
                return x + self.attr_1

        .. warning::

            Dead code elimination has some heuristics to avoid removing
            side-effectful nodes (see Node.is_impure) but in general coverage
            is very bad, so you should assume that this method is not sound
            to call unless you know that your FX graph consists entirely
            of functional operations or you supply your own custom
            function for detecting side-effectful nodes.
        c                 óF   •— ‰� ‰| ¦  «        S |                       ¦   «         S r7   )Ú	is_impure)r^  r€  s    €r3   Úhas_side_effectz2Graph.eliminate_dead_code.<locals>.has_side_effectH  s)   ø€ ØÐ)Ø%�~ dÑ+Ô+Ð+Ø—>’>Ñ#Ô#Ð#r2   Fr   T)r  rž  r¤  rÙ   rg  r+  )re   r€  r„  Úchangedr^  s    `   r3   Úeliminate_dead_codezGraph.eliminate_dead_code  s�   ø€ ð^ 	�	Š	‰Œˆð	$ð 	$ð 	$ð 	$ð 	$ð ˆÝ˜TœZÑ(Ô(ð 	ð 	ˆDØ"�? 4Ñ(Ô(ð ­S°´©_¬_ÀÒ-AÐ-AØ—’ Ñ%Ô%Ð%Ø�øàˆr2   Úcodegenc                 ó   — || _         d S r7   )rñ  )re   r‡  s     r3   Úset_codegenzGraph.set_codegenX  s   € àˆŒˆˆr2   Úmake_transformerc                 óŒ   ‡ ‡— ‰ j         j        Š |‰¦  «        ‰ j         _        t          j        ˆˆ fd„¦   «         } |¦   «         S )aÿ	  Register a transformer function when python code is generated

        Args:
            make_transformer (Callable[[Optional[TransformCodeFunc]], TransformCodeFunc]):
                a function that returns a code transformer to be registered.
                This function is called by `on_generate_code` to obtain the
                code transformer.

                This function is also given as its input the currently
                registered code transformer (or None if nothing is registered),
                in case it is not desirable to overwrite it. This is useful to
                chain code transformers together.

        Returns:
            a context manager that when used in a `with` statement, to automatically
            restore the previously registered code transformer.

        Example:

        .. code-block:: python


            gm: fx.GraphModule = ...


            # This is a code transformer we want to register. This code
            # transformer prepends a pdb import and trace statement at the very
            # beginning of the generated torch.fx code to allow for manual
            # debugging with the PDB library.
            def insert_pdb(body):
                return ["import pdb; pdb.set_trace()\n", *body]


            # Registers `insert_pdb`, and overwrites the current registered
            # code transformer (given by `_` to the lambda):
            gm.graph.on_generate_code(lambda _: insert_pdb)

            # Or alternatively, registers a code transformer which first
            # runs `body` through existing registered transformer, then
            # through `insert_pdb`:
            gm.graph.on_generate_code(
                lambda current_trans: (
                    lambda body: insert_pdb(current_trans(body) if current_trans else body)
                )
            )

            gm.recompile()
            gm(*inputs)  # drops into pdb


        This function can also be used as a context manager, with the benefit to
        automatically restores the previously registered code transformer:

        .. code-block:: python

            # ... continue from previous example

            with gm.graph.on_generate_code(lambda _: insert_pdb):
                # do more stuff with `gm`...
                gm.recompile()
                gm(*inputs)  # drops into pdb

            # now previous code transformer is restored (but `gm`'s code with pdb
            # remains - that means you can run `gm` with pdb here too, until you
            # run next `recompile()`).
        c               3   óP   •K  — 	 d V — ‰ ‰j         _        d S # ‰ ‰j         _        w xY wr7   )rñ  rã   )Úon_gen_code_oldre   s   €€r3   Ú on_generate_code_context_managerz@Graph.on_generate_code.<locals>.on_generate_code_context_manager¦  s<   øè è € ðBØ���à2A�”Ô/Ð/Ð/ø°/�”Ô/ÐAÐAÐAÐAs   … —%)rñ  rã   Ú
contextlibr   )re   rŠ  rŽ  r�  s   `  @r3   Úon_generate_codezGraph.on_generate_code\  si   øø€ ðN œ-Ô9ˆØ*:Ð*:¸?Ñ*KÔ*KˆŒÔ'å	Ô	"ð	Bð 	Bð 	Bð 	Bð 	Bñ 
#Ô	"ð	Bð 0Ð/Ñ1Ô1Ð1r2   )NNN)Fr7   )rA   r   )NNNN)6r+   r,   r-   r.   r   r   r   r   r/   r   rf   Úpropertyrç  Úsetterrµ   r¤  r   rü  r�   rå  r
  r  r   r  rö   rù   r+  r/  r-  r3  r4  r5  r%   r#   r$   r"   r   r!   r  r&   r   r  r   rY  rX   rX  rc  rl  r  r†  r   r‰  ÚTransformCodeFuncr�  r1   r2   r3   r   r   §  sJ	  € € € € € ð-ð -ð^ €]¨$Ð/Ñ/Ô/ð 26Ø/3Ø26ð	@ð @à Ô.ð@ð ˜T (œ^Ô,ð@ð    S¨# X¤Ô/ð	@ð @ð @ñ 0Ô/ð@ð* ð#ð #ñ „Xð#ð Ôð" ¨-Ô!8ð "ð "ð "ñ Ôð"ð ð �zð  ð  ð  ñ „Xð ð €]¨%Ð0Ñ0Ô0ð˜Tð ð ð ñ 1Ô0ðð
 €]¨%Ð0Ñ0Ô0à7;È$ðð ð ØðØ"*¨8Ô"4ðØCGðð ð ñ 1Ô0ðð2 €]¨$Ð/Ñ/Ô/àHMðð ØðØ#'¨¨d¨
Ô#3ðà	ðð ð ñ 0Ô/ðð8ð ð ð ð ð* €]¨$Ð/Ñ/Ô/ð
 26Ø26Ø"Ø#'ð8ð 8àð8ð ð8ð �u˜_Ô-Ô.ð	8ð
 ˜˜c :˜oÔ.Ô/ð8ð �sŒmð8ð ˜C”=ð8ð 
ð8ð 8ð 8ñ 0Ô/ð8ðt €]¨%Ð0Ñ0Ô0ð3ð 3ñ 1Ô0ð3ð €]¨%Ð0Ñ0Ô0ð2ð 2ñ 1Ô0ð2ð €]¨$Ð/Ñ/Ô/ð'% 4ð '%¨Dð '%ð '%ð '%ñ 0Ô/ð'%ðR €]¨$Ð/Ñ/Ô/ð-ð - (¨4¤.ð -ð -ð -ñ 0Ô/ð-ð. €]¨$Ð/Ñ/Ô/ð,ð , ¨$¤ð ,ð ,ð ,ñ 0Ô/ð,ð. €]¨$Ð/Ñ/Ô/ð $(Ø$Ô.Ô4ð	Uð UàðUð ˜C”=ðUð ð	Uð
 
ðUð Uð Uñ 0Ô/ðUð@ €]¨$Ð/Ñ/Ô/ðAQð AQ sð AQ°xÀ´}ð AQÐPTð AQð AQð AQñ 0Ô/ðAQðF €]¨$Ð/Ñ/Ô/ð 26Ø26Ø#'ð/
ð /
àð/
ð �u˜_Ô-Ô.ð/
ð ˜˜c :˜oÔ.Ô/ð	/
ð
 ˜C”=ð/
ð 
ð/
ð /
ð /
ñ 0Ô/ð/
ðb €]¨$Ð/Ñ/Ô/ð 26Ø26Ø#'ð$
ð $
àð$
ð �u˜_Ô-Ô.ð$
ð ˜˜c :˜oÔ.Ô/ð	$
ð
 ˜C”=ð$
ð 
ð$
ð $
ð $
ñ 0Ô/ð$
ðL €]¨$Ð/Ñ/Ô/ð 26Ø26Ø#'ð$
ð $
à˜s C˜xÔ(ð$
ð �u˜_Ô-Ô.ð$
ð ˜˜c :˜oÔ.Ô/ð	$
ð
 ˜C”=ð$
ð 
ð$
ð $
ð $
ñ 0Ô/ð$
ðL €]¨$Ð/Ñ/Ô/àHSÈð ð  Øð Ø)1°4°&¸*Ð2DÔ)Eð à	ð ð  ð  ñ 0Ô/ð ðD €]¨$Ð/Ñ/Ô/ð
ð 
˜Zð 
°H¸S´Mð 
ð 
ð 
ñ 0Ô/ð
ð,	 Vð 	°ð 	ð 	ð 	ð 	ð €]¨$Ð/Ñ/Ô/ð
 Ø$Ø$ØðJð Jð JàðJð ð	Jð
 ðJð ðJð ðJð 
ðJð Jð Jñ 0Ô/ðJðb Ø$Ø$Øð
ð 
ð 
àð
ð ð
ð
 ð
ð ð
ð ð
ð ð
ð 
ð
ð 
ð 
ð 
ð(˜ð ð ð ð ð$ €]¨$Ð/Ñ/Ô/ð
ð 
ñ 0Ô/ð
ð* €]¨$Ð/Ñ/Ô/ðjð jñ 0Ô/ðjðX €]¨$Ð/Ñ/Ô/àAEð>ð >Ø& x°°¸°Ô'=Ô>ð>à	ð>ð >ð >ñ 0Ô/ð>ð@ €]¨%Ð0Ñ0Ô0ð  7ð  ð  ð  ñ 1Ô0ð ð €]¨%Ð0Ñ0Ô0ðP2à" HÐ->Ô$?Ð#@ÐBSÐ#SÔTðP2ð P2ð P2ñ 1Ô0ðP2ð P2ð P2r2   r   z{} + {}z{} - {}z{} * {}z{} // {}z{} / {}z{} % {}z{} ** {}z{} << {}z{} >> {}z{} & {}z{} | {}z{} ^ {}z{}[{}]z{} @ {})rq   rl   ÚmulÚfloordivÚtruedivÚdivrö  ÚpowÚlshiftÚrshiftÚand_Úor_ÚxorÚgetitemÚmatmulz{} == {}z{} != {}z{} < {}z{} > {}z{} <= {}z{} >= {}z+{}z-{}z~{})	ÚeqÚneÚltÚgtÚleÚgeÚposÚnegÚinvertz{} += {}z{} &= {}z	{} //= {}z	{} <<= {}z{} %= {}z{} *= {}z{} @= {}z{} |= {}z	{} **= {}z	{} >>= {}z{} -= {}z{} /= {}z{} ^= {}z{}[{}] = {})ÚiaddÚiandÚ	ifloordivÚilshiftÚimodÚimulÚimatmulÚiorÚipowÚirshiftÚisubÚitruedivÚixorÚsetitem)rr}   r�  r  r;  Ú	functoolsr3  r{   Úmathrœ  r`   r&  Úcollectionsr   r   Údataclassesr   Útypingr   r   r   r	   r
   r   r   r   r   r   r   r   r<   Útorch.utils._pytreeÚutilsr   r?   Útorch._Cr   r  r>   Ú_compatibilityr   r^  r   r   r   r   r   r   Ú__all__Ú_symbolic_tracer   Úgraph_moduler    r?  rÆ  r[   Ú	frozensetr7  r  Úfromkeysr  r/   r“  r(   r4   r0   r8   r9   r:   r°   r=   r�   rG   rL   Úpartialra   rl   rJ   rV   rX   Úbfloat16Úfloat64Úfloat32Úfloat16Úfloat8_e4m3fnÚfloat8_e5m2Úfloat8_e4m3fnuzÚfloat8_e5m2fnuzÚ	complex32Ú	complex64Ú
complex128Úint8Úint16Úint32Úint64Úuint8Úuint16Úuint32Úuint64Úbits16r‰  r   r¥   r§   rµ   rÄ   rË   rß   r   r°  rÕ  r   Úreflectable_magic_methodsrŒ  rŽ  r1   r2   r3   ú<module>rÛ     se  ðà €€€€Ø Ð Ð Ð Ø €€€Ø €€€Ø Ð Ð Ð Ø €€€Ø €€€Ø €€€Ø 	€	€	€	Ø 	€	€	€	Ø €€€Ø #Ð #Ð #Ð #Ð #Ð #Ø %Ð %Ð %Ð %Ð %Ð %Ø !Ð !Ð !Ð !Ð !Ð !ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð €€€Ø $Ð $Ð $Ð $Ð $Ð $Ð $Ð $Ð $Ø Ð Ð Ð Ð Ð à "Ð "Ð "Ð "Ð "Ð "Ø )Ð )Ð )Ð )Ð )Ð )Ø RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ Rð -Ð
,Ð
,€àð *Ø'Ð'Ð'Ð'Ð'Ð'Ø)Ð)Ð)Ð)Ð)Ð)ð
 	ˆ$Øˆ$ØˆØˆyØ	ˆ5ðÐ ð �]Š]ØXÐXÐXñô €
ð ˜d 3œi˜[¨$¨s¬)Ð3Ô4Ð ðð ð ð ð �Zñ ô ð ð /1Ð �$�s˜NÐ*Ô+Ð 0Ð 0Ñ 0ð= 3ð =°Cð =¸cð =ð =ð =ð =ð Ð ˜Ð 6¸¼Ñ AÔ AÐ AØ Ð ˜Ð 6¸¼Ñ AÔ AÐ AØ Ð ˜Ð%<¸d¸dÀ4¹j¼jÑ IÔ IÐ IØ Ð ˜ .°%Ñ 8Ô 8Ð 8Ø Ð ˜Ð#=¸u¼|Ñ LÔ LÐ LØ Ð ˜Ð&LÈiÑ XÔ XÐ XØ Ð ˜Ð#IÈ6Ñ RÔ RÐ Rð3�ð 3˜ð 3ð 3ð 3ð 3ð	&�3ð 	&˜3ð 	&ð 	&ð 	&ð 	&ð $�)Ô# J B¤JÐ/CÑ$DÔ$DÔ$HÈ&ÑQÔQ€ð˜ð  ð ð ð ð ð(Y#ð Y#ð Y#ð Y#ð Y#ñ Y#ô Y#ð Y#ðxØ	„N�Fðà	„M�5ðð 
„M�5ðð 
„M�5ð	ð
 
Ô˜ðð 
Ô�xðð 
Ô˜<ðð 
Ô˜<ðð 
„O�Uðð 
„O�Uðð 
Ô�fðð 
„J�ðð 
„K�ðð 
„K�ðð 
„K�ðð  
„J�ð!ð" 
„K�ð#ð$ 
„L�%Ø	„L�%Ø	„L�%Ø	„L�%ð+ð €ð2 € dÐ+Ñ+Ô+Ø
ð4ð 4ð 4ð 4ð 4ñ 4ô 4ñ „ñ ,Ô+ð4ð˜ð  cð ¨cð ð ð ð ð	.ð 	.ð 	.ð 	.ð 	.ñ 	.ô 	.ð 	.ðYð Yð Yð Yð Yñ Yô Yð Yð"(ð (ð (ð (ð (�*ñ (ô (ð (ð €�$ÐÑÔðTð Tð Tð Tð Tñ Tô Tñ ÔðTð Cð ð ð ð ð* € eÐ,Ñ,Ô,ð@Eð @Eð @Eð @Eð @Eñ @Eô @Eñ -Ô,ð@EðRT8ð T8ð T8ð T8ð T8�Wñ T8ô T8ð T8ðnYð Yð Yð Yð Yñ Yô Yð YðD € dÐ+Ñ+Ô+ðE2ð E2ð E2ð E2ð E2ñ E2ô E2ñ ,Ô+ðE2ðR  ØØØØØØØØØØØØØØðð Ð ð$ �àØØØØØØØØð
ð 
ðð ð  ðð €ð  ØØØØØØØØØØØØØðð €€€r2   