+
    \åûjù  ã                   óÄ   € ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 . ROt
]! RR7       ! R	 R]	4      4       t]! RR7      RR
 R ll4       t]! RR7      R R l4       tR# )é    )Úcompatibility)ÚGraph)ÚGraphModule)ÚSubgraphMatcher)ÚModuleÚHolderModuleF)Úis_backward_compatiblec                   óB   a a€ ] tR t^t oRtV3R lV 3R lltRtVtV ;t# )r   zm
HolderModule is used to copy all the attributes from original module to submodules
that uses the attributes
c                óH   <€ V ^8„  d   QhRS[ S[S[R,          3,          RR/# )é   ÚdNÚreturn)ÚdictÚstrr   )ÚformatÚ__classdict__s   "€ÚXC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\fx\passes\utils\common.pyÚ__annotate__ÚHolderModule.__annotate__   s)   ø€ ÷ "ñ "™$™s¡F¨T¥MÐ1Õ2ð "°tñ "ó    c                óx   <€ \         SV `  4        VP                  4        F  w  r#V P                  W#4       K  	  R # )N)ÚsuperÚ__init__ÚitemsÚ
add_module)Úselfr   ÚkÚvÚ	__class__s   &&  €r   r   ÚHolderModule.__init__   s,   ø€ Ü‰ÑÔØ—G‘G–I‰DˆAØ�O‰O˜AÖ!ó r   © )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r   s   @@r   r   r      s   ù‡ € ñ÷
"÷ "ó "r   c                ó˜   € V ^8„  d   QhR\         R\        R\        R\        R\        \         \        \        \        3,          3,          /# )r   ÚgmÚsubgraphÚ	comp_nameÚ
class_namer   )r   r   r   Útupler   )r   s   "r   r   r      sS   € ÷ 7Sñ 7SÜð7Säð7Sô ð7Sô ð	7Sô
 Œ;œœS¤#˜X�Ð&Õ'ñ7Sr   c                ó  € \        / 4      p/ pVP                   FÛ  pVP                  R9  d   K  VP                  p\	        V\
        4      '       g   \        R\        V4       24      hVP                  R4      pTp	T p
VRR  FE  p\        W›4      '       g   V	P                  V\        / 4      4       \        W›4      p	\        W«4      p
KG  	  VR,          p\        W¬4      pV RV 2WW&   \        WœV4       KÝ  	  \        WAV4      V3# )au  
Create a GraphModule for subgraph, which copies the necessary attributes
from the original parent graph_module.

Args:
    gm (GraphModule): parent graph module

    subgraph (:class:`torch.fx.Graph`): a valid subgraph that contains copied nodes from the
        parent graph

    comp_name (str): name for the new component

    class_name (str): name for the submodule

zExpected str target, got Ú.N)Úcall_moduleÚget_attréÿÿÿÿ)r   ÚnodesÚopÚtargetÚ
isinstancer   ÚAssertionErrorÚtypeÚsplitÚhasattrr   ÚgetattrÚsetattrr   )r+   r,   r-   r.   Ú	submoduleÚorig_to_split_fqn_mappingÚnr7   Útarget_name_partsÚcurrÚorig_gmÚnameÚleaf_node_nameÚ	leaf_nodes   &&&&          r   Úlift_subgraph_as_modulerH      s  € ô: ˜RÓ €IØ02ÐØ�^Œ^ˆØ�4‰4Ð2Ô2Ùà—‘ˆÜ˜&¤#×&Ò&Ü Ð#<¼TÀ&»\¸NÐ!KÓLÐLØ"ŸL™L¨Ó-ÐØˆØˆà% c rÓ*ˆDÜ˜4×&Ò&Ø—‘ ¤l°2Ó&6Ô7ä˜4Ó&ˆDÜ˜gÓ,ŠGñ +ð +¨2Õ.ˆÜ˜GÓ4ˆ	à/8¨k¸¸6¸(Ð,CÐ!Ñ)ä� iÖ0ñ/ ô2 �y¨JÓ7Ð9RÐRÐRr   c                ó<   € V ^8„  d   QhR\         R\         R\        /# )r   ÚleftÚrightr   )r   Úbool)r   s   "r   r   r   T   s!   € ÷ ñ œð ¤uð ´ñ r   c                ó\   € \        V RRR7      pVP                  V4      p\        V4      ^ 8„  # )zß
Return True if two graphs are identical, i.e they
    - have the same number of outputs in the same order
    - have the same number of inputs in the same order
    - have the same set of nodes, and identical connectivity
T)Úmatch_outputÚmatch_placeholder)r   ÚmatchÚlen)rJ   rK   ÚmatcherÚmatchess   &&  r   Úcompare_graphsrT   S   s/   € ô ˜d°ÈÔN€GØ�m‰m˜EÓ"€Gäˆw‹<˜!ÑÐr   N)r   rH   rT   )Ú r   )Útorch.fx._compatibilityr   Útorch.fx.graphr   Útorch.fx.graph_moduler   Ú#torch.fx.passes.utils.matcher_utilsr   Útorch.nnr   Ú__all__r   rH   rT   r!   r   r   Ú<module>r\      sq   ðÝ 1Ý  Ý -Ý ?Ý ò H€ñ  eÔ,ô	"�6ó 	"ó -ð	"ñ  eÔ,ö7Só -ð7Sñt  eÔ,ôó -òr   