+
    åûj«6 ã                   óŠ  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RIHtHt ^ RIHtHtHt ^ RIHt ^ RIHtHtHt ^ RIt^ RIt^ RIHt ^ RIHt ^ RI H!t!H"t"H#t#H$t$ ^R	I%H&t&H't' ^R
I(H)t)H*t* ^RI+H,t, ]'       d   ^RI-H.t.H/t/ ^RI0H1t1 ^RI2H3t3 ]Ph                  ! ]54      t6Rt7]8! 4       t9Rt:]	Pv                  ! R4      t<]	Pv                  ! R4      t=Rt>Rt?Rt@]>]?]@3tAR R ltBR R ltCR R ltDR R ltER R ltFR  R! ltGR" R# ltH ! R$ R%]P’                  4      tJR&tK^tLR' R( ltM] ! R) R*4      4       tNR+ R, ltO]P*                   ! R- R.4      4       tP ! R/ R0]"4      tQ ! R1 R2]P¤                  4      tS] ! R3 R44      4       tTR5 R6 ltUR7 R8 ltVR9 R: ltWR; R< ltX] ! R= R>4      4       tYRSR? R@ lltZRA RB lt[RC RD lt\] ! RE RF4      4       t]RGt^RH RI lt_]`]`]`]a]b]b3,          RJ3,          ]`]aRJ3,          ]`]bRJ3,          3,          tcRK RL ltdRM RN lte] ! RO RP4      4       tfRQ RR ltgR# )Té    N)ÚCallableÚSequence)ÚAbstractContextManagerÚ	ExitStackÚnullcontext)Ú	dataclass)ÚAnyÚOptionalÚTYPE_CHECKING)ÚGraphRuntimeEnv)Ú_graph_device_types)Ú_collapse_device_typesÚFunctionPicklerBaseÚSerializedCodeÚ
SystemInfo)Úconvert_frameÚexternal_utils)Ú&BundledAOTAutogradSerializableCallableÚSerializableCallable)ÚHooks)ÚGuardManagerWrapperÚGuardsState)ÚOutputGraphGuardsState©Ú
SourceInfozIMark the value(s) as external data by using `external_data={'key': ...}`.z“a C++ throw out of a tree can leave that tree's relational guard state stale, so its next check can reject a call it fits or accept one it does notz#KeyError on G\[(?P<name>[^\[\]]*)\]z\bG\['([^']*)'\]Ú	__import_Ú__builtins_dict__Ú___unnamed_scopec                ót   € V ^8„  d   QhR\         \        \        3,          R\         \        \        3,          /# )é   ÚscopeÚreturn©ÚdictÚstrr	   )Úformats   "ÚUC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\_dynamo\aot_compile.pyÚ__annotate__r(   h   s*   € ÷ 5ñ 5¤D¬¬c¨¥Nð 5´t¼CÄ¸Hµ~ñ 5ó    c                 óh   € ^RI Hp V P                  R4      \        P                  Jd   V # / V CRV/C# )é   )Ú_live_builtinsÚ__builtins__)Úguardsr,   ÚgetÚbuiltinsÚ__dict__)r!   r,   s   & r'   Ú_picklable_unnamed_scoper2   h   s5   € õ 'à‡y�y�Ó ¬×(9Ñ(9Ó9ØˆØ4ˆeÐ4�^ ^Ñ4Ð4r)   c                ó0   € V ^8„  d   QhR\         R\        /# )r    Útextr"   )r%   Úbool)r&   s   "r'   r(   r(   v   s   € ÷ Nñ N¤#ð N¬$ñ Nr)   c                 ó˜   € \         P                  V 4      pVf   R# VR,          P                  R4      P                  \        4      '       * # )NFÚnamez"')Ú_MISSING_GLOBAL_REÚ	fullmatchÚstripÚ
startswithÚ_MINTED_GLOBAL_PREFIXES)r4   Úmatchs   & r'   Ú_names_a_missing_globalr>   v   s@   € ô ×(Ñ(¨Ó.€EØ‚}ÙØ�V�}×"Ñ" 5Ó)×4Ñ4Ô5LÓMÔMÐMr)   c                óR   € V ^8„  d   QhR\         R\        \        \        3,          /# ©r    Úer"   )Ú	ExceptionÚtupler%   ÚBaseException)r&   s   "r'   r(   r(      s$   € ÷ )ñ )œ	ð )¤e¬C´Ð,>Õ&?ñ )r)   c                ó  € T p\        V4      0p\        V\        4      '       dH   VP                  e:   VP                  p\        V4      V9   d   MVP	                  \        V4      4       K]  \        V4      P                  V3# )z‡What a guard tree meant to raise, as ``(type name, exception)``. The
report line and the warning both read it, so the two cannot drift.)ÚidÚ
isinstanceÚSystemErrorÚ	__cause__ÚaddÚtypeÚ__name__)rA   ÚreasonÚseens   &  r'   Ú_unwrapped_raiserO      sk   € ð, €FÜˆv‹Jˆ<€DÜ
�Vœ[×
)Ò
)¨f×.>Ñ.>Ò.JØ×!Ñ!ˆÜˆf‹:˜ÔØØ�‰”�F“ÖÜ�‹<× Ñ  &Ð(Ð(r)   c                ó0   € V ^8„  d   QhR\         R\        /# r@   )rB   r5   )r&   s   "r'   r(   r(   Ÿ   s   € ÷ 9ñ 9œ9ð 9¬ñ 9r)   c                óB   € \        \        V 4      ^,          \        4      # )zFWhether what a guard tree meant to raise is an ordinary ``Exception``.)rG   rO   rB   )rA   s   &r'   Ú_meant_an_exceptionrR   Ÿ   s   € äÔ& qÓ)¨!Õ,¬iÓ8Ð8r)   c                ó0   € V ^8„  d   QhR\         R\        /# )r    rM   r"   )rD   r%   )r&   s   "r'   r(   r(   ¤   s   € ÷ 6ñ 6”Mð 6¤cñ 6r)   c                 ó|   €  \        V 4      #   \         d$   pR \        T4      P                   R2u Rp?# Rp?ii ; i)z<str() raised Ú>N)r%   rB   rK   rL   )rM   Úexcs   & r'   Ú_quotedrW   ¤   s;   € ð6Ü�6‹{ÐøÜô 6Ø¤ S£	× 2Ñ 2Ð3°1Ð5Õ5ûð6ús   ‚
 �;˜6°;¶;c                ó0   € V ^8„  d   QhR\         R\        /# r@   )rB   r%   )r&   s   "r'   r(   r(   ¶   s   € ÷ Nñ N”9ð N¤ñ Nr)   c                 ó�   € \        V 4      w  rW J d   R MRpRP                  V R\        V4       2P                  4       4       V 2# )Ú z+ (through the guard tree's pybind boundary)Ú z: )rO   ÚjoinrW   Ú
splitlines)rA   ÚkindrM   Úboundarys   &   r'   Ú_raise_textr`   ¶   sP   € Ü# AÓ&�L€Dð
 “[‰rÐ&S€Hð
 �h‰h˜$˜˜r¤'¨&£/Ð!2Ð3×>Ñ>Ó@ÓAÐBÀ8À*ÐMÐMr)   c                ó<   € V ^8„  d   QhR\         R\        R\        /# )r    ÚindexrA   r"   )ÚintrB   r%   )r&   s   "r'   r(   r(   Ä   s&   € ÷ @ñ @œð @¤	ð @¬cñ @r)   c                 ó&   € R V  R\        V4       R2# )ú  [z] <guard check raised rU   )r`   )rb   rA   s   &&r'   Ú_raised_linerf   Ä   s   € Ø��Ð-¬k¸!«nÐ-=¸QÐ?Ð?r)   c                   ó&   € ] tR t^ÈtRtRtRtRtRtR# )Ú_GuardScopez>Which dict the artifact's global guards resolve names against.ÚcapturedÚsuppliedÚreconstructed© N)	rL   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚCAPTUREDÚSUPPLIEDÚRECONSTRUCTEDÚ__static_attributes__rl   r)   r'   rh   rh   È   s   † ÙHð €Hð €Hð
 $„Mr)   rh   s   PT2AOTc          
      ó~   € V ^8„  d   QhR\         P                  R\        R\        R\        \        \        3,          /# )r    Ú	signatureÚargsÚkwargsr"   )ÚinspectÚ	Signaturer	   r$   r%   )r&   s   "r'   r(   r(   Ý   s:   € ÷ %ñ %Ü× Ñ ð%Ü),ð%Ü8;ð%ä	Œ#Œsˆ(…^ñ%r)   c                 ó^   € V P                   ! V/ VB pVP                  4        VP                  # ©N)ÚbindÚapply_defaultsÚ	arguments)rv   rw   rx   Úbound_argumentss   &*, r'   Úbind_localsr�   Ý   s/   € ð  —n’n dÐ5¨fÑ5€OØ×"Ñ"Ô$Ø×$Ñ$Ð$r)   c                   óx   a € ] tR t^åt o ]P
                  ! ]P                  R7      tV 3R lR lt	V 3R lt
RtV tR# )ÚCompileArtifacts©Údefault_factoryc                ó   <€ V ^8„  d   QhRR/# ©r    r"   Nrl   )r&   Ú__classdict__s   "€r'   r(   ÚCompileArtifacts.__annotate__ó   s   ø€ ÷ Oñ O Tñ Or)   c                ó|   € \         P                  ! 4       pVP                  V P                  V P                  4       R # r|   )r   ÚcurrentÚcheck_compatibilityÚsystem_infoÚdevice_type)ÚselfÚcurrent_systems   & r'   rŒ   Ú$CompileArtifacts.check_compatibilityó   s,   € Ü#×+Ò+Ó-ˆØ×*Ñ*¨4×+;Ñ+;¸T×=MÑ=MÖNr)   c                óÒ   <€ V ^8„  d   Qh/ S[ P                  ;R&   S[R,          ;R&   S[;R&   S[;R&   S[;R&   S[P                  ;R&   S[;R&   R	;R
&   S[;R&   S[;R&   S[	;R&   # )r    rv   r   Úguard_managerÚguards_stateÚ
backend_idÚcompiled_fnÚoriginal_codeÚruntime_envr   Úsource_inforŽ   Úbackend_namer�   )
ry   rz   r
   Úbytesr%   r   ÚtypesÚCodeTyper   r   )r&   rˆ   s   "€r'   r(   r‰   å   s¡   ø‡ ‚ á× Ñ Ñ ñ ñ Ð1Õ2Ñ2ñ ñ Ññ	 ñ
 �Oñ ñ &Ñ%ñ ñ —>‘>Ñ!ñ ñ !Ñ ñ ð Ññ ñ Ññ ñ Ññ ñ ÑSò r)   rl   N)rL   rm   rn   ro   ÚdataclassesÚfieldr   r‹   r�   rŒ   Ú__annotate_func__rt   Ú__classdictcell__©rˆ   s   @r'   rƒ   rƒ   å   s0   ø‡ € ð *×/Ò/À
×@RÑ@RÔS€K÷Oð O÷ ƒ r)   rƒ   c                óD   € V ^8„  d   QhR\         R\        P                  /# )r    Údatar"   )r›   ÚioÚBytesIO)r&   s   "r'   r(   r(   ø   s   € ÷ 	ñ 	¤Eð 	¬b¯j©jñ 	r)   c                 óæ   € \         P                  ! V 4      pVP                  \        \        4      4      pVP                  ^4      pV\        8w  g   V\        \        .4      8w  d   \        R4      hV# )r+   zmAOT compiled artifact has an unsupported serialization format. Recompile it with the current PyTorch version.)r¥   r¦   ÚreadÚlenÚ_AOT_COMPILE_MAGICr›   Ú_AOT_COMPILE_FORMAT_VERSIONÚRuntimeError)r¤   ÚfÚmagicÚversions   &   r'   Ú_open_aot_compile_payloadr°   ø   sc   € Ü
�
Š
�4Ó€AØ�F‰F”3Ô)Ó*Ó+€EØ�f‰f�Q‹i€GØÔ"Ô" g´Ô8SÐ7TÓ1UÔ&UÜð=ó
ð 	
ð €Hr)   c                   óŠ  a € ] tR tRt o Rt]P                  ! ]R7      t]P                  ! ]	R7      t
]P                  ! ]R7      t]P                  ! ]R7      t]P                  ! ]R7      t]P                  ! ]R7      t]P                  ! ]R7      t]P                  ! ]R7      tRt]P                  ! ]	R7      tV 3R ltRtV tR# )Ú_ProbeStatei  z�Shared by an AOTCompilePickler and the throwaway probe picklers its
_dumps_cleanly spawns, so the whole probe tree sees one memo.r„   Fc                óª  <€ V ^8„  d   Qh/ S[ S[S[3,          ;R&   S[S[,          ;R&   S[ S[S[S[,          3,          ;R&   S[ S[S[3,          ;R&   S[ S[S[ S[S[3,          3,          ;R&   S[ S[S[3,          ;R&   S[ S[S[ S[S[3,          3,          ;R&   S[ S[S[S[R3,          R	,          3,          ;R
&   S[;R&   S[S[,          ;R&   # )r    ÚcacheÚinflightÚunmarked_modulesÚfailuresÚ
attributesÚdocsÚannotations.NÚtype_paramsÚleanedÚparked)r$   rc   r5   ÚsetÚlistr	   r%   rC   )r&   rˆ   s   "€r'   r(   Ú_ProbeState.__annotate__  sñ   ø‡ ‚ ñ ‘‘T�	�?ÑDñ ñ ‘#�hÑ?ñ ñ ™3¡¡S¥	˜>Õ*ÑTñ ñ ‘3™�8�nÑFñ ñ$ ‘S™$™s¡C˜x�.Ð(Õ)ÑSñ% ñ* ‰s‘Cˆx�.ÑBñ+ ñ. ‘c™4¡¡S �>Ð)Õ*ÑTñ/ ñ0 ‘c™5¡ c �?¨TÕ1Ð1Õ2ñ ñ1 ñ< Ññ= ñ> ‘�HÑ=ò? r)   rl   N)rL   rm   rn   ro   rp   rž   rŸ   r$   r´   r¾   rµ   r¶   r·   r¸   r¹   rº   r»   r¼   r½   r    rt   r¡   r¢   s   @r'   r²   r²     s·   ø‡ € ñEð )×.Ò.¸tÔD€EØ$×*Ò*¸3Ô?€Hð .9×->Ò->ÈtÔ-TÐð  +×0Ò0ÀÔF€Hð -8×,=Ò,=ÈdÔ,S€Jð '×,Ò,¸TÔB€Dà-8×->Ò->ÈtÔ-T€KØ5@×5FÒ5FØô6€Kð €FØ"×(Ò(¸Ô=€F÷? ƒ r)   r²   c                   óÖ   a a€ ] tR tRt oRR/V3R lV 3R llltV3R lR ltV3R lR	 ltV3R
 lR ltV3R lR ltV3R lR lt	V3R lR lt
V3R lR ltV3R lR ltRtVtV ;t# )ÚAOTCompilePickleri&  Úprobe_stateNc                óh   <€ V ^8„  d   QhRS[ S[S[3,          RS[P                  RS[R,          RR/# )r    Úexternal_dataÚbufrÃ   Nr"   )r$   r%   Úobjectr¥   r¦   r²   )r&   rˆ   s   "€r'   r(   ÚAOTCompilePickler.__annotate__'  sE   ø€ ÷ 9ñ 9á™C¡˜KÕ(ð9ñ �Z‰Zð9ñ
 ! 4Õ'ð9ð 
ñ9r)   c               óö   <€ \         SV `  V4       Wn        VP                  4        UUu/ uF  w  rE\	        V4      VbK  	  uppV n        / V n        VR JV n        T;'       g    \        4       V n	        R # u uppi r|   )
ÚsuperÚ__init__rÅ   ÚitemsrF   Úid_mapÚerrorsÚ_probingr²   Ú_probe_state)r�   rÅ   rÆ   rÃ   ÚkeyÚvalueÚ	__class__s   &&&$  €r'   rË   ÚAOTCompilePickler.__init__'  su   ø€ ô 	‰Ñ˜ÔØ*Ôà-:×-@Ñ-@Ô-Bô'
Ù-B™z˜sŒBˆu‹I�sŠNÑ-Bò'
ˆŒð ˆŒð $¨4Ð/ˆŒØ'×8Ð8¬;«=ˆÖùó'
s   ªA5c                óD   <€ V ^8„  d   QhRS[ RS[S[,          R,          /# )r    Úobjr"   N)rÇ   rc   r%   )r&   rˆ   s   "€r'   r(   rÈ   9  s$   ø€ ÷ ñ ¡ð ©C±#­I¸Õ,<ñ r)   c                ó
  € \        V4      V P                  9   d   V P                  \        V4      ,          # \        V\        P                  P
                  4      '       d#   WP                  \        V4      &   \        V4      # R # r|   )rF   rÍ   rG   ÚtorchÚnnÚModulerÎ   )r�   rÖ   s   &&r'   Úpersistent_idÚAOTCompilePickler.persistent_id9  sV   € Üˆc‹7�d—k‘kÔ!Ø—;‘;œr #›wÕ'Ð'Ü˜œUŸX™XŸ_™_×-Ò-Ø#&�K‰Kœ˜3›Ñ Ü�c“7ˆNár)   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# ©r    rÖ   r"   ©r	   )r&   rˆ   s   "€r'   r(   rÈ   C  s   ø€ ÷ -ñ -¡Cð -©Cñ -r)   c                óà  € \        V\        P                  4      '       d   V P                  V4      # \        P
                  ! V4      '       d-   \        V 4      P                  \        P                  ! V4      33# \        P                  ! V4      '       d#   \        V 4      P                  VP                  33# \        P                  ! V4      '       dp   VP                  p\        V4      V P                   9   ;'       g%    \        V\"        P$                  P&                  4      pV P)                  WR 7      pVe   V#  \>        # \        P*                  ! V4      '       dŒ   V P-                  V4      '       gu   V P/                  VVP0                  VP2                  VP4                  V P7                  V4      V P9                  V4      V P;                  V4      V P=                  V4      RR7	      # \>        # ))Úreceiver_is_liveN)ÚdefaultsÚ
kwdefaultsÚclosurer¸   rº   Údocr»   Úglobals_snapshot) rG   rœ   ÚCellTypeÚ_reduce_cellry   ÚiscoderK   Ú_unpickle_coder   Úfrom_code_objectÚismoduleÚ_unpickle_python_modulerL   ÚismethodÚ__self__rF   rÍ   rØ   rÙ   rÚ   Ú_reduce_bound_methodÚ
isfunctionÚ_fqn_resolvesÚ_reduce_functionÚ__defaults__Ú__kwdefaults__Ú__closure__Ú_pickleable_attributesÚ_pickleable_annotationsÚ_pickleable_docÚ_pickleable_type_paramsÚNotImplemented)r�   rÖ   ÚreceiverÚliveÚreduceds   &&   r'   Úreducer_overrideÚ"AOTCompilePickler.reducer_overrideC  sŽ  € Ü�cœ5Ÿ>™>×*Ò*Ø×$Ñ$ SÓ)Ð)Ü�^Š^˜C× Ò Ü˜“:×,Ñ,¬~×/NÒ/NÈsÓ/SÐ.UÐUÐUÜ×Ò˜c×"Ò"Ü˜“:×5Ñ5¸¿¹°ÐFÐFÜ×Ò˜c×"Ò"Ø—|‘|ˆHô �h“< 4§;¡;Ñ.×WÐW´*¸XÄuÇxÁxÇÁÓ2WˆDØ×/Ñ/°Ð/ÓKˆGØÒ"Ø�ð #ô6 Ðô3 ×Ò ×$Ò$¨T×-?Ñ-?À×-DÒ-Dð ×(Ñ(ØØ×)Ñ)Ø×-Ñ-ØŸ™Ø×6Ñ6°sÓ;Ø ×8Ñ8¸Ó=Ø×(Ñ(¨Ó-Ø ×8Ñ8¸Ó=Ø!%ð )ó 
ð 
ô Ðr)   c                ó0   <€ V ^8„  d   QhRS[ RS[RS[ RR/# )r    rÖ   ÚslotrÒ   r"   N)r	   r%   )r&   rˆ   s   "€r'   r(   rÈ   r  s)   ø€ ÷ 
ñ 
¡ð 
©Cð 
¹ð 
Àñ 
r)   c           	     ó  € V P                   '       d   R # VP                  pV P                  P                  P	                  \        V4      4      pVe    RP                  R V 4       4      pRV R2pM>V P                  P                  P	                  \        V4      4      pV'       d   RV R2MRp\        P                  R\        VRVP                  4      V\        V4      P                  VVP                  VP                  4       R # )	Nú, c              3   óL   "  € T F  p\        V4      P                  x € K  	  R # 5ir|   ©rK   rL   ©Ú.0Úms   & r'   Ú	<genexpr>Ú2AOTCompilePickler._warn_dropped.<locals>.<genexpr>€  s   é € Ð@¹°1œd 1›g×.Ö.»ùó   ‚"$z3it holds nn.Module(s) not marked as external data (Ú)zit does not pickle (zit does not picklezjdropping %s.%s (%s) from the artifact: %s; pass it in external_data to keep it (function defined at %s:%d)Úco_qualname)rÏ   Ú__code__rÐ   r¶   r/   rF   r\   r·   ÚlogÚwarningÚgetattrÚco_namerK   rL   Úco_filenameÚco_firstlineno)	r�   rÖ   r  rÒ   ÚcodeÚmodulesÚnamesrM   Úfailures	   &&&&     r'   Ú_warn_droppedÚAOTCompilePickler._warn_droppedr  sß   € ð �=�=ˆ=ÙØ�|‰|ˆØ×#Ñ#×4Ñ4×8Ñ8¼¸E»ÓCˆØÒØ—I‘IÑ@¹Ó@Ó@ˆEØJÈ5È'ÐQRÐS‰Fà×'Ñ'×0Ñ0×4Ñ4´R¸³YÓ?ˆGç5<Ð& w i¨qÑ1ÐBVð ô
 	�‰ØxÜ�D˜-¨¯©Ó6ØÜ�‹K× Ñ ØØ×ÑØ×Ñö	
r)   c                ó<   <€ V ^8„  d   QhRS[ RS[S[S[ 3,          /# rÞ   ©r	   r$   r%   )r&   rˆ   s   "€r'   r(   rÈ   “  s#   ø€ ÷ ñ ©#ð ±$±s¹C°xµ.ñ r)   c                óº  € V P                   pV P                  '       g7   \        V4      VP                  9   d   VP                  \        V4      ,          # / p\	        VP
                  P                  4       4       F4  w  rEV P                  V4      '       d   WSV&   K"  V P                  WV4       K6  	  V P                  '       g   W2P                  \        V4      &   V# r|   )	rÐ   rÏ   rF   r¸   r¿   r1   rÌ   Ú_dumps_cleanlyr  )r�   rÖ   Ústater¸   r7   rÒ   s   &&    r'   r÷   Ú(AOTCompilePickler._pickleable_attributes“  s­   € ð ×!Ñ!ˆØ�}�}ˆ}¤ C£¨E×,<Ñ,<Ô!<Ø×#Ñ#¤B s£GÕ,Ð,Øˆ
Ü §¡× 2Ñ 2Ó 4Ö5‰KˆDØ×"Ñ" 5×)Ò)Ø#(˜4Ó à×"Ñ" 3¨eÖ4ñ	 6ð
 �}�}ˆ}Ø(2×ÑœR ›WÑ%ØÐr)   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# rÞ   rß   )r&   rˆ   s   "€r'   r(   rÈ   ¦  s   ø€ ÷ ñ ¡3ð ©3ñ r)   c                óp  € V P                   pV P                  '       g7   \        V4      VP                  9   d   VP                  \        V4      ,          # VP                  pV P                  V4      '       g   V P                  VR V4       RpV P                  '       g   W2P                  \        V4      &   V# )rp   N)rÐ   rÏ   rF   r¹   rp   r  r  )r�   rÖ   r   rå   s   &&  r'   rù   Ú!AOTCompilePickler._pickleable_doc¦  s‰   € ð ×!Ñ!ˆØ�}�}ˆ}¤ C£¨E¯J©JÔ!6Ø—:‘:œb ›gÕ&Ð&Ø�k‰kˆØ×"Ñ" 3×'Ò'Ø×Ñ˜s I¨sÔ3ØˆCØ�}�}ˆ}Ø"%�J‰J”r˜#“wÑØˆ
r)   c                ó<   <€ V ^8„  d   QhRS[ RS[S[S[ 3,          /# rÞ   r  )r&   rˆ   s   "€r'   r(   rÈ   ¸  s#   ø€ ÷ 0ñ 0©3ð 0±4¹¹S¸µ>ñ 0r)   c           	     óª  € V P                   pV P                  '       g7   \        V4      VP                  9   d   VP                  \        V4      ,          # / p V P	                  VR R7      p/ p\        VP                  4       4       F:  w  rxV P                  V4      '       d   W†V&   K"  V P!                  VRV: R2V4       K<  	  V P                  '       g   WbP                  \        V4      &   V#   \
         dY   pTP                  p\        P                  R\        TRTP                  4      TP                  TP                  T4        Rp?LâRp?ii ; i)T)Úevaluatez*dropping the annotations of %s (%s:%d): %sr  Nz__annotations__[Ú])rÐ   rÏ   rF   rº   Ú_read_raw_annotationsrB   r  r  Údebugr  r  r  r  r¿   rÌ   r  r  )	r�   rÖ   r   rº   rA   r  Úkeptr7   rÒ   s	   &&       r'   rø   Ú)AOTCompilePickler._pickleable_annotations¸  s(  € ð2 ×!Ñ!ˆØ�}�}ˆ}¤ C£¨E×,=Ñ,=Ô!=Ø×$Ñ$¤R¨£WÕ-Ð-Ø&(ˆð
	Ø×4Ñ4°SÀ4Ð4ÓHˆKð ˆÜ × 1Ñ 1Ó 3Ö4‰KˆDØ×"Ñ" 5×)Ò)Ø"�T“
à×"Ñ" 3Ð*:¸4¹(À!Ð(DÀeÖLñ	 5ð
 �}�}ˆ}Ø)-×Ñœb ›gÑ&Øˆøô# ô 	Ø—<‘<ˆDÜ�I‰IØ<Ü˜˜m¨T¯\©\Ó:Ø× Ñ Ø×#Ñ#Ø÷ñ ûð	ús   ÁC/ Ã/EÃ:AEÅEc                ó&   <€ V ^8„  d   QhRS[ RS[/# )r    rÒ   r"   ©r	   r5   )r&   rˆ   s   "€r'   r(   rÈ   ê  s   ø€ ÷ _ñ _¡Cð _©Dñ _r)   c                ó–  € V P                  V4      '       d   R # V P                  p\        V4      pVP                  P	                  V4      pVe   V# W2P
                  9   d   R# W2P                  9   d
   R Vn        R # \        V 4      ! V P                  \        P                  ! 4       VR7      pVP                  P                  V4       VP                  pRVn         VP                  V4       VP                  '       * pV'       gh   \        VP                  P!                  4       4      VP"                  V&   \$        P'                  R\        VP                  P!                  4       4      4       TP                  P/                  T4       TP                  p	T;'       g    T	Tn        T'       g   T	'       d   TP                  '       g   YrP                  T&   MTP
                  P                  T4       TP                  '       g"   TP
                  P1                  4        RTn        T#   \(         dZ   p\$        P'                  R\        T4      P*                  T4       \        T4      P*                  TP,                  T&   Rp Rp?ELRp?ii ; i  TP                  P/                  T4       TP                  p	T;'       g    T	Tn        i ; i)TNF)rÃ   z7pruning unmarked nn.Module(s) %s from a nested functionz4pruning an unpicklable %s from a nested function: %s)Ú_is_literalrÐ   rF   r´   r/   r½   rµ   r¼   rK   rÅ   r¥   r¦   rJ   ÚdumprÎ   r¿   Úvaluesr¶   r  r*  rB   rL   r·   ÚdiscardÚclear)
r�   rÒ   r   ÚvidÚcachedÚprobeÚleaned_beforeÚresultrV   r¼   s
   &&        r'   r  Ú AOTCompilePickler._dumps_cleanlyê  s  € ð ×Ñ˜E×"Ò"ÙØ×!Ñ!ˆÜ�‹iˆØ—‘—‘ Ó%ˆØÒØˆMØ—,‘,ÔÙØ—.‘.Ô ð
  ˆEŒLÙô �T”
˜4×-Ñ-¬r¯zªz«|ÈÔOˆØ�‰×Ñ˜3ÔØŸ™ˆØˆŒð	3Ø�J‰J�uÔð Ÿ™Ô%ˆFßÜ.2°5·<±<×3FÑ3FÓ3HÓ.I�×&Ñ& sÑ+Ü—	‘	ØMÜ˜Ÿ™×,Ñ,Ó.Ó/ôð
 �N‰N×"Ñ" 3Ô'ð —\‘\ˆFØ(×2Ð2¨FˆEŒL÷" Ÿ u§~§~ ~Ø%�K‰K˜Òà�L‰L×Ñ˜SÔ!Ø�~�~ˆ~Ø�L‰L×ÑÔ Ø ˆEŒLØˆøôk ô 	ä�I‰IØFÜ�U“×$Ñ$Øôô
 #' s£)×"4Ñ"4ˆE�N‰N˜3ÑØŽFûð	ûð, �N‰N×"Ñ" 3Ô'ð —\‘\ˆFØ(×2Ð2¨FˆE�Lús2   ÃH' Ã.B J È'JÈ2AJÊ J ÊJÊJ Ê:Kc                óH   <€ V ^8„  d   QhRS[ RS[S[ R3,          R,          /# )r    rÖ   r"   .N)r	   rC   )r&   rˆ   s   "€r'   r(   rÈ   K  s(   ø€ ÷ ñ ©3ð ±5¹¸c¸µ?ÀTÕ3Iñ r)   c                ó°  a € S P                   pS P                  '       g7   \        V4      VP                  9   d   VP                  \        V4      ,          # \	        VR R4      pTpV'       dA   \        V 3R lV 4       R4      pVe'   R VP                  9  d   S P                  VR V4       RpS P                  '       g   WBP                  \        V4      &   V# )Ú__type_params__Nc              3   óZ   <"  € T F   pSP                  V4      '       d   K  Vx € K"  	  R # 5ir|   )r  )r  Úpr�   s   & €r'   r
  Ú<AOTCompilePickler._pickleable_type_params.<locals>.<genexpr>^  s    øé € ÐM¡;˜a°d×6IÑ6IÈ!×6LŸš£;ùs   ƒ+¡
+)rÐ   rÏ   rF   r»   r  Únextr1   r  )r�   rÖ   r   r»   r+  Úbads   f&    r'   rú   Ú)AOTCompilePickler._pickleable_type_paramsK  s³   ø€ ð ×!Ñ!ˆØ�}�}ˆ}¤ C£¨E×,=Ñ,=Ô!=Ø×$Ñ$¤R¨£WÕ-Ð-Ü˜cÐ#4°dÓ;ˆØˆßô ÔM¡;ÓMÈtÓTˆCØŠØ$¨C¯L©LÔ8Ø×&Ñ& sÐ,=¸sÔCØ�Ø�}�}ˆ}Ø)-×Ñœb ›gÑ&Øˆr)   )rÐ   rÏ   rÎ   rÅ   rÍ   )rL   rm   rn   ro   rË   rÛ   rÿ   r  r÷   rù   rø   r  rú   rt   r¡   Ú__classcell__©rÓ   rˆ   s   @@r'   rÂ   rÂ   &  st   ù‡ € ð9ð
 +/÷9õ 9÷$ð ÷-ð -÷^
ð 
÷Bð ÷&ð ÷$0ð 0÷d_ð _÷B÷ ð r)   rÂ   c                   óP   a a€ ] tR tRt oV3R lV 3R lltV3R lR ltRtVtV ;t# )ÚAOTCompileUnpicklerih  c                óV   <€ V ^8„  d   QhRS[ S[S[3,          RS[P                  RS[/# )r    rÅ   Úfiler"   )r$   r%   rÇ   r¥   r¦   )r&   rˆ   s   "€r'   r(   Ú AOTCompileUnpickler.__annotate__i  s/   ø€ ÷ +ñ +¡d©3±¨;Õ&7ð +¹r¿z¹zð +Éfñ +r)   c                ó2   <€ \         SV `  V4       Wn        R # r|   )rÊ   rË   rÅ   )r�   rÅ   rI  rÓ   s   &&&€r'   rË   ÚAOTCompileUnpickler.__init__i  s   ø€ Ü‰Ñ˜ÔØ*Ör)   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r    rÑ   r"   )r%   rÇ   )r&   rˆ   s   "€r'   r(   rJ  m  s   ø€ ÷ 'ñ '¡3ð '©6ñ 'r)   c                ó~   € WP                   9  d   \        R V RV P                    24      hV P                   V,          # )z-Missing required external reference to data: zS. Please load AOT compiled function with `external_data=<external data dictionary>`)rÅ   r¬   )r�   rÑ   s   &&r'   Úpersistent_loadÚ#AOTCompileUnpickler.persistent_loadm  sN   € Ø×(Ñ(Ô(ÜØ?À¸uð E=ð ×%Ñ%Ð&ð(óð ð ×!Ñ! #Õ&Ð&r)   )rÅ   )	rL   rm   rn   ro   rË   rO  rt   r¡   rD  rE  s   @@r'   rG  rG  h  s   ù‡ € ÷+ó +÷'÷ 'ð 'r)   rG  c                   ó,   a € ] tR tRt o V 3R ltRtV tR# )ÚAOTCompileSaveResultix  c                ó&   <€ V ^8„  d   Qh/ S[ ;R&   # )r    Úserialized_data©r›   )r&   rˆ   s   "€r'   r(   Ú!AOTCompileSaveResult.__annotate__x  s   ø‡ ‚ áÑò r)   rl   N)rL   rm   rn   ro   r    rt   r¡   r¢   s   @r'   rR  rR  x  s   ø‡ ‡ „ r)   rR  c                ó0   € V ^8„  d   QhR\         R\        /# )r    Ú	file_pathr¤   )r%   r›   )r&   s   "r'   r(   r(   }  s   € ÷ %ñ %¤3ð %¬eñ %r)   c                 ó¢  € \         P                  P                  V 4      ;'       g    R p\        P                  ! VRRR7      ;_uu_ 4       pVP
                  pVP                  V4       VP                  4        \         P                  ! VP                  4       4       RRR4       \         P                  ! XV 4       R#   + '       g   i     L); i)Ú.FÚwb)ÚdirÚdeleteÚmodeN)ÚosÚpathÚdirnameÚtempfileÚNamedTemporaryFiler7   ÚwriteÚflushÚfsyncÚfilenoÚreplace)rX  r¤   Údir_nameÚ	temp_fileÚ	temp_paths   &&   r'   Úatomic_write_binaryrl  }  s�   € Ü�w‰w�‰˜yÓ)×0Ð0¨S€Hä	×	$Ò	$Ø˜U¨÷
õ 
à	Ø—N‘Nˆ	Ø�‰˜ÔØ�‰ÔÜ
�Š�×!Ñ!Ó#Ô$÷
ô ‡J‚Jˆy˜)Ö$÷
÷ 
ús   ÁAB>Â>C	c                ó`   € V ^8„  d   QhR\         \        \        3,          R\        R,          /# )r    r!   r"   Nr#   )r&   s   "r'   r(   r(   ‹  s*   € ÷ Jñ J¤$¤s¬C x¥.ð J´S¸4µZñ Jr)   c                óÀ   € V P                  R4      p\        V\        4      '       d    \        P                  P                  V4      MRpVe   \        V4      V J d   V# R# )zDThe name of the module whose live namespace ``scope`` is, else None.rL   N)r/   rG   r%   Úsysr  Úvars)r!   r7   Úmodules   &  r'   Ú_module_namespace_namerr  ‹  sM   € ð �9‰9�ZÓ €DÜ&0°´s×&;Ò&;ŒS�[‰[�_‰_˜TÔ"À€FØÒ%¬$¨v«,¸%Ó*?ˆ4ÐIÀTÐIr)   c                ó>   € V ^8„  d   QhRRR\         \        ,          /# )r    Úoutput_graphr   r"   ©r¾   r%   )r&   s   "r'   r(   r(   ”  s   € ÷ ñ Ð(@ð ÄSÌÅXñ r)   c                ó´   € ^RI Hp V P                   Uu0 uF7  p\        VP                  V4      '       g   K!  VP                  P
                  kK9  	  up# u upi )z:The global names a kept guard's own originating_source IS.)ÚGlobalSource)Úsourcerw  r.   rG   Úoriginating_sourceÚglobal_name)rt  rw  Úguards   &  r'   Ú_guard_source_globalsr|  ”  sR   € õ" %ð "×(Ò(óá(ˆEÜ�e×.Ñ.°×=ô 	-ˆ× Ñ ×,Ô,Ù(ñð ùò s
   •A¸Ac                ó>   € V ^8„  d   QhRRR\         \        ,          /# )r    r”   r   r"   ru  )r&   s   "r'   r(   r(   ®  s   € ÷ ñ ¨-ð ¼CÄ½Hñ r)   c                ó
  € \        V P                  P                  4      pV P                  pVeT   VP                  '       dB   VP
                  P                   F'  pVP                  \        P                  V4      4       K)  	  V# )z5Every global name the kept guards read at check time.)
r¾   rt  Úglobal_scopeÚshape_code_partsÚpython_fallbackÚpython_code_partsÚexprsÚupdateÚ_SHAPE_GUARD_GLOBAL_REÚfindall)r”   r  r€  Úexprs   &   r'   Ú_recorded_guard_globalsrˆ  ®  sk   € ô �×)Ñ)×6Ñ6Ó7€EØ#×4Ñ4ÐØÒ#Ð(8×(H×(HÐ(HØ$×6Ñ6×<Ô<ˆDØ�L‰LÔ/×7Ñ7¸Ó=Ö>ñ =à€Lr)   c                   ó<  a € ] tR tRt o RtRtRt]P                  ! R]	P                  R7      tRt]P                  ! RRR7      t]P                  ! RR(R7      t]P                  ! RRRR7      tV 3R lR ltV 3R	 lR
 ltV 3R lR ltV 3R lR ltV 3R lR ltRR/V 3R lR lltV 3R lR ltV 3R lR ltV 3R lR ltR)V 3R lR llt]R)V 3R lR ll4       t]R*RRRR/V 3R  lR! lll4       t]R*RRRR/V 3R" lR# lll4       tV 3R$ lR% ltV 3R& ltR't V t!R# )+ÚAOTCompiledFunctioniÁ  TNF)ÚinitÚdefault)r‹  ÚreprÚcomparec                óB   <€ V ^8„  d   QhRS[ RS[ RS[S[S[ 3,          /# ©r    rw   rx   r"   )rÇ   r$   r%   )r&   rˆ   s   "€r'   r(   Ú AOTCompiledFunction.__annotate__ì  s+   ø€ ÷ ñ ¡fð ¹ð Á4ÉÉVÈÕCTñ r)   c                ó  € / pV P                   P                  pVP                  '       d¦   VP                  P                  '       d8   \        VP                  4      \        VP                  P                  4      8w  d   \        R 4      h\        VP                  P                  VP                  4       UUu/ uF  w  rVWVP                  bK  	  pppVP                  \        V P                   P                  .VO5/ VB 4       V# u uppi )z,closure length must match co_freevars length)Ú
_artifactsr˜   rä   ÚbytecodeÚco_freevarsr©   ÚAssertionErrorÚzipÚcell_contentsr„  r�   rv   )r�   rw   rx   Úf_localsÚenvr7   Úcells   &*,    r'   Úprepare_f_localsÚ$AOTCompiledFunction.prepare_f_localsì  sÕ   € Ø&(ˆØ�o‰o×)Ñ)ˆØ�;�;ˆ;Ø—<‘<×+×+Ð+¬s°3·;±;Ó/?Ä3Ø—‘×(Ñ(óDô 0ô %Ð%SÓTÐTô #& c§l¡l×&>Ñ&>ÀÇÁÔ"Lôá"L‘J�Dð ×(Ñ(Ò(Ù"Lð ñ ð 	�‰œ D§O¡O×$=Ñ$=ÐOÀÒOÈÑOÔPØˆùós   Â6Dc                ó   <€ V ^8„  d   QhRR/# )r    r"   r   rl   )r&   rˆ   s   "€r'   r(   r‘  û  s   ø€ ÷ -ñ -Ð%:ñ -r)   c                ót   € V P                   P                  f   \        R4      hV P                   P                  # )Nz'live artifact must have a guard_manager)r“  r“   r–  ©r�   s   &r'   Ú_live_guard_managerÚ'AOTCompiledFunction._live_guard_managerû  s0   € ð �?‰?×(Ñ(Ò0Ü Ð!JÓKÐKØ�‰×,Ñ,Ð,r)   c                ó,   <€ V ^8„  d   QhRS[ RS[ RS[/# r�  r.  )r&   rˆ   s   "€r'   r(   r‘    s"   ø€ ÷ :ñ :¡ð :±ð :¹ñ :r)   c                ód   € V P                   ! V/ VB pV P                  4       P                  V4      # r|   )rœ  r¡  Úcheck)r�   rw   rx   r™  s   &*, r'   Úguard_checkÚAOTCompiledFunction.guard_check  s1   € Ø×(Ò(¨$Ð9°&Ñ9ˆØ×'Ñ'Ó)×/Ñ/°Ó9Ð9r)   c                ó   <€ V ^8„  d   QhRR/# r‡   rl   )r&   rˆ   s   "€r'   r(   r‘    s   ø€ ÷ Oñ O˜tñ Or)   c                óŽ  € ^RI HpHp V P                  P	                  4        V P
                  pRpV P                  pV P                  P                  Ef#   V! V P                  P                  4      pVP                  pVP                  ;'       g    Rp\        V4      V0,
          p\        V P                  P                  P                  4      p	\        W‰,
          4      V n        Ve�   \"        P$                  V n        V P                   '       dh   \)        V4      p
\+        \-        V
4      4      V n        V
 Uu/ uF'  pVP1                  V\2        4      ;p\2        Jg   K%  W¼bK)  	  pp/ T;'       g    / CVCpV P                  P                  P5                  V P                  P6                  V P                  P8                  VR7      V n        Vep   Vf,   \"        P<                  V n        V P:                  P>                  pV PA                  WT4       V! VV P                  PB                  V4      V P                  n        R# R# u upi )r+   )Úload_guard_managerÚload_guards_stateNrZ   )Úextra_globals)"Úpackagerª  r«  r“  rŒ   Ú_extra_globalsÚ_guard_globalsr“   r”   rt  Ú%name_of_builtins_dict_key_in_fglobalsrˆ  r¾   r˜   Úimport_sourcesr5   Ú_has_global_guardsrh   rr   Ú_guard_scoper|  rC   ÚsortedÚ_live_global_namesr/   Ú_UNBOUNDÚforward_callabler•   r–   Úfnrs   Ú__globals__Ú_seed_guard_scoper—   )r�   rª  r«  r¬  r”   Úguard_scopert  Úbuiltins_keyÚrecorded_globalsÚaliasesÚ	certifiedÚnÚvrý   s   &             r'   Ú__post_init__Ú!AOTCompiledFunction.__post_init__  só  € ßBà�‰×+Ñ+Ô-à×+Ñ+ˆØˆØ×)Ñ)ˆØ�?‰?×(Ñ(Ó0Ù,¨T¯_©_×-IÑ-IÓJˆLØ'×4Ñ4ˆLð
 (×MÑM×SÐSÐQSˆLÜ6°|ÓDÈÀ~ÕUÐô
 ˜$Ÿ/™/×5Ñ5×DÑDÓEˆGÜ&*Ð+;Õ+EÓ&FˆDÔ#ØÒ&ô %0×$8Ñ$8�Ô!Ø×*×*Ð*ô !6°lÓ C�IÜ.3´F¸9Ó4EÓ.F�DÔ+ñ "+óá!*˜AØ!,§¡°´HÓ!=Ð=˜AÄhÐNô ˜šÙ!*ð ð ð
 %F¨×(;Ð(;¸Ð$EÀÐ$E�Mà—/‘/×-Ñ-×>Ñ>Ø�O‰O×&Ñ&Ø�O‰O×'Ñ'Ø'ð ?ó 
ˆŒð Ò#ØÒ"Ü$/×$=Ñ$=�Ô!Ø"Ÿg™g×1Ñ1�ð
 ×"Ñ" ;Ô=Ù,>ØØ—‘×-Ñ-Øó-ˆD�O‰OÖ)ñ $ùòs   Ä9"IÅ Ic                ó>   <€ V ^8„  d   QhRS[ S[S[3,          RRRR/# )r    r»  r”   r   r"   Nr#   )r&   rˆ   s   "€r'   r(   r‘  W  s2   ø€ ÷ A;ñ A;Ù¡¡S �>ðA;Ø9FðA;à	ñA;r)   c                ój  € ^RI Hp ^RIHp ^RIHp VP                   p\        V4      pVP                  pVP                   U	u. uF  q™P                  NK  	  p
p	V
 Uu0 uF
  q´! V4      kK  	  pp\        V4      ;'       d    WŒ9   p. pRpV'       EdS   VEeN   V P                  P                  P                  P                  V4      pV P                  RJ ;'       g    V P                  V P                   J pV'       d   RMRp\#        V4      pVf   TMRV R2pVP%                  VV34       V P&                  P(                  VJd,   Ve(   VP%                  V P&                  P(                  R34       V Fo  w  ppVP                  R	\*        P,                  4      p\/        V\0        \2        P4                  34      '       d   KN  \7        V R
\9        V4      P:                   24      h	  V P                  P                  P<                  P?                  4        F1  w  ppVV9   g   K  VV9  g   K  \@        PB                  ! V4      VV&   K3  	  V P                  P                  P                  pV FP  pVPE                  \F        4      '       g   K   VV9   g   K)  VPI                  VV4       VV9  g   KD  VV,          VV&   KR  	  V'       d   Vf   R# VPI                  W4       V FE  w  ppVV9   d   Ve   VV,          VJd   K   R	V9  d   \*        P,                  VR	&   V! V4      VV&   KG  	  R# u up	i u upi )r+   )Úget_builtins_dict)Úget_global_source_name)ÚCleanupHookNÚ	f_globalsÚguard_globalszvars(r  r-   z1['__builtins__'] must be a dict or a module, got )%rt  rÆ  rx  rÇ  ÚutilsrÈ  rˆ  r°  r.   ry  r5   r“  r˜   Úused_globalsr/   r¯  r®  rr  Úappendr¸  r¹  r0   r1   rG   r$   rœ   Ú
ModuleTypeÚ	TypeErrorrK   rL   r±  rÌ   Ú	importlibÚimport_moduler;   Ú_UNNAMED_SCOPE_PREFIXÚdisown)r�   r»  r”   rÆ  rÇ  rÈ  rt  Úguarded_globalsr¼  r{  Úsourcesrx  ÚrootsÚseeds_builtinsÚscopesÚsnapshotÚarrived_as_f_globalsÚparamÚ	namespaceÚwherer!   ÚboundÚaliasÚmodule_namerÌ  r7   Ú_s   &&&                        r'   rº  Ú%AOTCompiledFunction._seed_guard_scopeW  sç  € õ 	4Ý2Ý&à#×0Ñ0ˆô 2°,Ó?ˆð $×IÑIˆØ9E×9LÒ9LÓMÑ9L°×+Ô+Ñ9LˆÐMÙ>EÓF¹g°FÐ'¨Ö/¹gˆÐFÜ˜lÓ+×EÐE°Ñ0Eˆð 46ˆØˆßˆ>˜lÓ6Ø—‘×2Ñ2×?Ñ?×CÑCÀLÓQˆHð ×#Ñ# tÐ+÷ >ð >Ø×&Ñ&¨$×*=Ñ*=Ð=ð !÷ $8‘K¸_ˆEÜ.¨{Ó;ˆIØ&Ò.‘E°e¸I¸;ÀaÐ4HˆEØ�M‰M˜;¨Ð.Ô/Ø�w‰w×"Ñ"¨+Ó5¸(Ò:NØ—‘˜tŸw™w×2Ñ2°KÐ@ÔAÛ &‘��uØŸ	™	 .´(×2CÑ2CÓD�Ü! %¬$´×0@Ñ0@Ð)A×BÔBÜ#Ø ˜'Ð!RÜ ›;×/Ñ/Ð0ð2óð ñ !'ð #'§/¡/×"=Ñ"=×"LÑ"L×"RÑ"RÖ"TÑˆE�;Ø˜Ö'¨E¸Ö,DÜ%.×%<Ò%<¸[Ó%I�˜EÓ"ñ #Uð —‘×2Ñ2×?Ñ?ˆÛ#ˆDØ�‰Ô4×5Ô5¸$À,Ö:NØ×"Ñ" ;°Ô5Ø˜{Ö*Ø(4°TÕ(:�K Ó%ñ	 $÷
  Ò!5Ùð 	×Ñ˜;Ô5ó& ‰HˆE�1Ø˜uÔ$ØÒ  E¨,Õ$7¸xÓ$Gáð  UÔ*Ü(0×(9Ñ(9��nÑ%Ù"3°EÓ":ˆE�,Óó ùòq NùÚFs   ÁL+ÁL0Úforwardc                ó4   <€ V ^8„  d   QhRS[ R,          RS[ /# )r    rã  Nr"   )r%   )r&   rˆ   s   "€r'   r(   r‘  Ú  s   ø€ ÷ 7
ñ 7
©s°T­zð 7
ÁSñ 7
r)   c               óR  € V P                   \        P                  J d(   RpV P                  e   V RV P                   R2# V R2# V P                   \        P                  J dC   \        V P                  ;'       g    / 4      pVf   RMRV R2pVe	   RV R	V 2MR
V 2pRV R2#  R# )a«  Advice for a guard that failed on a global its scope does not define,
worded for the scope the guards were actually resolved against. Returns a
bare sentence; a caller that continues a line of its own adds the
separator. ``forward`` names the model's instance attribute, passed only
when the guards hold the very dict it resolves to -- resolved by the load
or supplied by the caller -- and honoured only in the SUPPLIED branch.zDa guarded global is missing from the scope rebuilt from the artifactz!. That scope was rebuilt because zT, or pass AOTCompiledModel.deserialize a guard_globals= scope that carries the name.zß; load with an f_globals= that is a complete live scope carrying the name -- normally vars(mod) for the module mod that defined the function, which is usually not the module doing the loading -- so the guard can resolve it.rZ   z, here vars(r  zthe globals of the function zê resolves to, seen through the wrappers torch.compile, torch._dynamo.disable, run and optimize return and through any functools.wraps'd torch._dynamo.external_utils function to the function they wrap, which is the dict the guards holdz/the live scope this artifact was loaded againstz!a guarded global is missing from z.; define it there so the guard can resolve it.z´a guarded global is missing from the globals of the module the compiled function was traced in, which its guards still resolve against; define it there so the guard can resolve it.)r³  rh   rs   Ú_forward_not_resolved_reasonrr   rr  r¯  )r�   rã  ÚrebuiltrÜ  ÚnamedrÝ  s   &$    r'   Ú_missing_global_hintÚ(AOTCompiledFunction._missing_global_hintÚ  s  € ð ×Ñ¤× 9Ñ 9Ó9àVð ð ×0Ñ0Ò<ð �iÐ@Ø×8Ñ8Ð9ð :(ð(ðð �)ð Dð Dðð ×Ñ¤× 4Ñ 4Ó4ô /¨t×/BÑ/B×/HÐ/HÀbÓIˆIØ#Ò+‘B°<À	¸{È!Ð1LˆEð Ò&ð /¨w¨ið 84ð 5:°7ñ	<ð GÀuÀgÐNð ð 4°E°7ð ;/ð /ððDñ	
r)   c                ó,   <€ V ^8„  d   QhRS[ RS[ RS[ /# r�  rß   )r&   rˆ   s   "€r'   r(   r‘    s"   ø€ ÷ ,ñ ,™cð ,©Sð ,±Sñ ,r)   c                óð  € V P                   '       dÔ   V P                  ! V/ VB '       g¼   V P                  ! V/ VB pV P                  4       P	                  V4      pR V 2p\
        ;QJ d&    R VP                   4       F  '       g   K   RM	  RM! R VP                   4       4      '       d-   VP                  4       R,           V P                  4       ,           p\        V4      hV P                  ! V/ VB # )z#GuardManager check failed, reason: c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5ir|   )r>   )r  Úparts   & r'   r
  Ú/AOTCompiledFunction.__call__.<locals>.<genexpr>  s   é € ð Ù:W°$Ô'¨×-Ð-Ó:Wùó   ‚TFz -- )Ú_guard_check_enabledr¦  rœ  r¡  Úcheck_verboseÚanyÚverbose_code_partsÚrstripré  r¬   Ú_serve)r�   rw   rx   r™  Ú
debug_infoÚmsgs   &*,   r'   Ú__call__ÚAOTCompiledFunction.__call__  s×   € Ø×$×$Ð$¨T×-=Ò-=¸tÐ-NÀv×-NÐ-NØ×,Ò,¨dÐ=°fÑ=ˆHØ×1Ñ1Ó3×AÑAÀ(ÓKˆJØ7¸
°|ÐDˆCß‹sñ Ø:D×:WÒ:Wó�s�sŠsñ Ø:D×:WÒ:Wó÷ ò ð —j‘j“l VÕ+¨d×.GÑ.GÓ.IÕI�Ü˜sÓ#Ð#Ø�{Š{˜DÐ+ FÑ+Ð+r)   c                ó,   <€ V ^8„  d   QhRS[ RS[ RS[ /# r�  rß   )r&   rˆ   s   "€r'   r(   r‘  #  s'   ø€ ÷ N(ñ N(™Cð N(©3ð N(±3ñ N(r)   c                ó  € V P                   '       dk   V P                  pVf   \        R4      hV P                  P                  pV P                    F)  pVP                  V\        4      pV\        Jg   K%  WdV&   K+  	  V P                  ! V/ VB # )aú  Run the graph, re-reading the globals a kept guard certifies.

Every call of an artifact runs through here -- ``__call__`` once its
guards pass or the check is disabled, and all four exits of
``AOTCompiledModel.__call__``: the first pass, the sweep over the later
results, the re-check pass and the opted-out last resort -- so this is
the only caller of the raw ``fn``, and no dispatch pass serves a value an
earlier call re-read for a name the scope binds.

A global a kept guard's own source IS -- not one reached only through a
sub-path of it, which the guard does not certify -- is re-read from the
guard scope here, so a rebind that scope took and the guards accepted (a
same-metadata swap under a ``TENSOR_MATCH``, which checks metadata, not
values) is what the graph computes with. Every other global keeps
whatever the bytecode's globals hold -- the value they were built with
at load, unless the graph itself stores to it, which nothing here takes
back -- a container a guard reaches only through a sub-path such as
``G['D']['a']`` included: that guard certifies the one item, not the
container's other members. A name the scope does not bind is skipped
rather than deleted, so it keeps whatever it last held -- the
serialized value if the scope never bound it -- and, unless the check
is disabled, the guard rooted at it refuses the call, and a mapping
that fabricates a missing name through ``__missing__`` is not asked to:
the read takes ``_UNBOUND`` instead. A global the graph itself rebinds
is re-read from the scope on the next call too: the replayed
``STORE_GLOBAL`` lands in the bytecode's globals, not in the scope, so
the stored value is one no guard certified and the scope's is what the
check before the call just passed. That is a deliberate trade-off: a
forward that accumulates into a guarded global (``global W; W = W *
2``) serves the scope's value on every call, where eager, whose store
lands in the dict its guards read, counts up. Leaving a stored name out
of the re-read instead would serve the stored value after a rebind of
the scope the guards accepted -- the check certifying one value while
the graph reads another, which is the stale read this re-read removes
-- and writing the store back into the scope is a behaviour neither
load path has. Under the default filter, which drops every guard whose
own source is a global (a symbolic-shape guard on a global with a
dynamic dim survives it, but is rooted at the ShapeEnv),
``_live_global_names`` is empty, nothing is re-read and such a store
accumulates in the bytecode's globals, unchecked.

Only a load handed a live scope arms this. An artifact compiled in this
process has none, so its globals stay at the values the capture copied
while its guards read the module dict they were rooted in: the same two
dicts, left to diverge as they already did rather than widened here.

An artifact that opted out of the check re-reads the same names with
nothing certifying them and serves whatever it finds, a value a kept
guard would have rejected included, or, for a name the scope no longer
binds, whatever the bytecode's globals last held: the opt-out is unsafe
by construction, and holding those names at their load-time values
instead would be no more checked, only stale.
The re-read is not atomic with the guard check before it, so a rebind
landing between the two is served unchecked -- the same window an eager
compiled frame has between guard evaluation and LOAD_GLOBAL. The write
lands in this artifact's own ``fn.__globals__``, which every call of it
shares, so two threads serving one loaded artifact while either rebinds
a guarded global race on that dict and one can run the graph on the
value the other just wrote; a caller who needs isolation loads the
artifact once per thread, since each load builds one such dict per
compiled result.z+_live_global_names recorded without a scope)rµ  r¯  r–  r¸  r¹  r/   r¶  )r�   rw   rx   r!   rÉ  r7   rÒ   s   &*,    r'   rö  ÚAOTCompiledFunction._serve#  s…   € ð| ×"×"Ð"ð ×'Ñ'ˆEØŠ}Ü$Ð%RÓSÐSØŸ™×+Ñ+ˆIØ×/Ô/�ð Ÿ	™	 $¬Ó1�Ø¤Õ(Ø&+˜d“Oñ 0ð �wŠw˜Ð' Ñ'Ð'r)   c                ó   <€ V ^8„  d   QhRR/# )r    r"   r   rl   )r&   rˆ   s   "€r'   r(   r‘  s  s   ø€ ÷ +ñ +˜\ñ +r)   c                ó.   € V P                   P                  # r|   )r“  r™   r   s   &r'   r™   ÚAOTCompiledFunction.source_infos  s   € Ø�‰×*Ñ*Ð*r)   c                óP   <€ V ^8„  d   QhRS[ RS[S[ S[3,          R,          RS[/# )r    r`  rÅ   Nr"   )r%   r$   r	   rR  )r&   rˆ   s   "€r'   r(   r‘  v  s2   ø€ ÷ ñ ÙðÙ(,©S±#¨X­¸Õ(=ðá	ñr)   c                ód   € \        V 4      P                  W4      p\        WP                  4       V# r|   )rK   Ú	serializerl  rT  )r�   r`  rÅ   r9  s   &&& r'   Úsave_compiled_functionÚ*AOTCompiledFunction.save_compiled_functionv  s+   € ô �d“×%Ñ% dÓ:ˆÜ˜D×"8Ñ"8Ô9Øˆr)   c                óN   <€ V ^8„  d   QhRRRS[ S[S[3,          R,          RS[/# )r    r¸  rŠ  rÅ   Nr"   )r$   r%   r	   rR  )r&   rˆ   s   "€r'   r(   r‘  ~  s<   ø€ ÷ JDñ JDØ&ðJDÙ7;¹CÁ¸Hµ~ÈÕ7LðJDá	ñJDr)   c                óô  € VP                   P                  P                  4       pR VR&   VR,          p\        P                  ! T\
        P                  ! VP                  4      VP                  P                  4        UUu/ uFD  w  rVTVP                  \        4      '       d"   \        V\        4      '       d   \        V4      MTbKF  	  uppR7      VR&   VR,          p\        V4      P                   \        V4      P#                  V4      3VR&   \
        P                  ! VR,          4      VR&   \$        P&                  ! 4       pVP)                  \*        4       VP)                  \-        \.        .4      4       \1        T;'       g    / V4      p	 V	P3                  V4       T	PD                  '       d7   \K        R\M        T	PD                  PI                  4       4       R\B         24      h\O        TPQ                  4       R7      # u uppi   \4        P6                  \8        \:        \<        3 dÉ   p
T
P>                  '       d   \A        T
P>                  ^ ,          4      MRp\B        T9   d   h T'       d   T R2MRpRpT	PD                  '       d7   RPG                  R	 T	PD                  PI                  4        4       4      pR
T R2pTRT R\B         2,           .T
P>                  R,          O5T
n        h R p
?
ii ; i)Nr“   r˜   )r”  rÌ  r–   r—   rZ   Ú
r  c              3   óL   "  € T F  p\        V4      P                  x € K  	  R # 5ir|   r  r  s   & r'   r
  Ú0AOTCompiledFunction.serialize.<locals>.<genexpr>¹  s   é € Ð!TÑ<S°q¤$ q£'×"2Ö"2Ó<Sùr  z& It also reached unmarked nn.Modules (z).z¾Some value reached by the artifact is not picklable (a closure cell, a default/kwdefault, or the top-level function's own signature annotations, which ride unpruned, are the common sources).r[   ºr+   NNz+Failed to serialize the following objects: )rT  ))r“  r1   Úcopyrž   rh  r   rë   r”  rÌ  rÌ   r;   rÒ  rG   r$   r2   rK   Údeserialize_compile_artifactsÚserialize_compile_artifactsr¥   r¦   rd  rª   r›   r«   rÂ   r1  ÚpickleÚPicklingErrorrÏ  ÚAttributeErrorÚRecursionErrorrw   r%   Ú_EXTERNAL_DATA_HINTrÎ   r\   r2  r¬   r¿   rR  Úgetvalue)Úclsr¸  rÅ   r   r˜   r7   rÒ   r–   rÆ   ÚpicklerrA   ÚmessageÚprefixr  r  s   &&&            r'   r  ÚAOTCompiledFunction.serialize}  s›  € ð —‘×&Ñ&×+Ñ+Ó-ˆØ!%ˆˆoÑØ˜MÕ*ˆÜ*×2Ò2ØÜ#×4Ò4°[×5IÑ5IÓJð
 $/×#;Ñ#;×#AÑ#AÔ#Cô	ñ $D‘K�Dð Ø—?‘?Ô#8×9Ò9¼jÈÔPT×>UÒ>Uô /¨uÔ5àòñ $Dò	ô	 
ˆˆmÑð ˜MÕ*ˆô
 �Ó×;Ñ;Ü�Ó×9Ñ9¸+ÓFð 
ˆˆmÑô "0×!@Ò!@ÀÀÕAWÓ!XˆˆoÑÜ�jŠj‹lˆØ�	‰	Ô$Ô%Ø�	‰	”%Ô4Ð5Ó6Ô7Ü# M×$7Ð$7°R¸Ó=ˆð'	Ø�L‰L˜ÔðN �>�>ˆ>ÜØ=¼dÀ7Ç>Á>×CXÑCXÓCZÓ>[Ð=\Ð\^Ü&Ð'ð)óð ô $°C·L±L³NÔCÐCùóCøô, ×$Ñ$¤i´ÄÐPô %	ð( )*¯¯¨”c˜!Ÿ&™& �)”n°BˆGÜ" gÔ-Øß'.˜�y ‘^°BˆFØˆGØ�~�~ˆ~ð Ÿ	™	Ñ!T¸G¿N¹N×<QÑ<QÔ<SÓ!TÓT�ØBÀ5À'ÈÐL�àð ð $˜9 AÔ&9Ð%:ð<õ <ðð
 —‘˜•ñˆAŒFð ûðK%	ús-   Â A
HÆH
 È
%K7È/AK2É3K2ÊA$K2Ë2K7rÊ  Úforward_not_resolved_reasonc                ó¶   <€ V ^8„  d   QhRS[ RS[S[S[3,          R,          RS[S[S[3,          R,          RS[S[S[3,          R,          RS[R,          RR/# )	r    r¤   rÉ  NÚexternal_closure_datarÊ  r  r"   rŠ  )r›   r$   r%   rÇ   r	   )r&   rˆ   s   "€r'   r(   r‘  Ë  st   ø€ ÷ (
ñ (
áð(
ñ ™™V˜Õ$ tÕ+ð(
ñ  $¡C© H�~°Õ4ð	(
ñ ™C¡˜KÕ(¨4Õ/ð(
ñ &)¨4¥Zð(
ð 
ñ(
r)   c               óD   € \        V4      pV P                  VVVVVR7      # )aû  Rebuild a compiled function from ``serialize()`` output.

``f_globals`` is MERGED over the scope reconstructed from the serialized
bytecode, so a name it omits still resolves to the baked-in value.
``guard_globals`` REPLACES the guard scope with no such fallback -- a name
it lacks fails the guard, and an EMPTY dict is an empty scope rather than
"no scope" -- and the load WRITES into it, seeding the recorded aliases,
builtins-dict key and unnamed-scope key a kept guard is rooted at without
replacing a name it already binds, so pass the dict those should land in.
Supplying it also binds the certified globals into the bytecode's globals
at load and arms the per-call re-read ``_serve`` performs: a global a kept
guard's own source IS -- not one reached only through a sub-path of it,
which the guard does not certify, and apart from the recorded
``__builtins_dict___N`` key, excluded by name -- is taken from that dict at
load and on every call, one name at a time, so the graph reads only what a
guard certifies and never a global whose guard a filter dropped; the
load-time bind is what lets a ``guard_globals``-only load succeed where the
serialized scope lacks such a global, and it is written over ``f_globals``:
a certified name both bind is taken from ``guard_globals`` from the load
onwards, not only from the first call. The public loader passes one dict
as both, so it is unaffected. Passing neither resolves global guards
against the scope rebuilt from the artifact, where a rebinding in this
process is invisible.
©rÊ  r  )r°   Ú_deserialize_payload)r  r¤   rÉ  r  rÊ  r  r­   s   &&&&$$ r'   ÚdeserializeÚAOTCompiledFunction.deserializeÊ  s6   € ôD & dÓ+ˆØ×'Ñ'ØØØ!Ø'Ø(Cð (ó 
ð 	
r)   c                óÊ   <€ V ^8„  d   QhRS[ P                  RS[S[S[3,          R,          RS[S[S[3,          R,          RS[S[S[3,          R,          RS[R,          RR/# )	r    r­   rÉ  Nr  rÊ  r  r"   rŠ  )r¥   r¦   r$   r%   rÇ   r	   )r&   rˆ   s   "€r'   r(   r‘  ö  sx   ø€ ÷ 
ñ 
á�:‰:ð
ñ ™™V˜Õ$ tÕ+ð
ñ  $¡C© H�~°Õ4ð	
ñ ™C¡˜KÕ(¨4Õ/ð
ñ &)¨4¥Zð
ð 
ñ
r)   c               ó^  € T;_uu_ 4        \        T;'       g    / V4      pVP                  4       pR R R 4       \        P                  ! XR,          \        P
                  ! VR,          P                  4      R7      VR&   VR,          w  r‰\        P                  P                  P                  RR7      ;_uu_ 4        V! V	4      VR&   R R R 4       \        P
                  ! VR,          4      VR&   \        R/ VB p
V ! V
VVVR7      #   + '       g   i     Lß; i  + '       g   i     LZ; i)	Nr˜   )r”  r–   T)Úenable_autograd_for_aotr—   )r®  r¯  ræ  rl   )rG  Úloadrž   rh  r   Úto_code_objectr”  rØ   Ú	_inductorÚconfigÚpatchrƒ   )r  r­   rÉ  r  rÊ  r  Ú	unpicklerr   ÚdeserializerÚcompiled_fn_stateÚ	artifactss   &&&&$$     r'   r  Ú(AOTCompiledFunction._deserialize_payloadõ  sü   € ÷ ŠQÜ+Ð,A×,GÐ,GÀRÈÓKˆIØ—N‘NÓ$ˆE÷ ô  +×2Ò2Ø�-Õ Ü#×2Ò2°5¸Õ3G×3PÑ3PÓQô 
ˆˆmÑð +0°Õ*>Ñ'ˆÜ�_‰_×#Ñ#×)Ñ)À$Ð)×GÕGÙ#/Ð0AÓ#BˆE�-Ñ ÷ Hä!/×!>Ò!>¸uÀ_Õ?UÓ!VˆˆoÑä$Ñ- uÑ-ˆ	ÙØØ$Ø(Ø)Dô	
ð 	
÷ �Qú÷ H×Gús   ‹'D	Â>DÄ	D	ÄD,	c                ó   <€ V ^8„  d   QhRR/# r‡   rl   )r&   rˆ   s   "€r'   r(   r‘    s   ø€ ÷ *ñ * Tñ *r)   c                ó   € R V n         R# )FN)rñ  r   s   &r'   Údisable_guard_checkÚ'AOTCompiledFunction.disable_guard_check  s
   € Ø$)ˆÖ!r)   c                ó  <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[S[3,          R,          ;R&   S[S[S[3,          R,          ;R&   S[;R&   S[R,          ;R&   S[;R&   S[S[R	3,          ;R
&   S[R	S[3,          ;R&   # )r    r“  rñ  Nr®  r¯  r³  ræ  r²  .rµ  r¸  )	rƒ   r5   r$   r%   rÇ   rh   rC   r   r	   )r&   rˆ   s   "€r'   r(   r‘  Á  s¯   ø‡ ‚ á Ñ ñ ñ Ñ%ñ ñ ™™f˜Õ%¨Õ,Ñ3ñ	 ñ ™™f˜Õ%¨Õ,Ñ3ñ ñ ñ ñ ñ, #&¨¥*Ñ3ñ- ñ2 ÑKñ3 ñ@ ™c 3˜h�ÑSñA ñR 	�‘c�ÕÑUòS r)   )rñ  r³  r²  rµ  r¸  rl   r|   )NN)"rL   rm   rn   ro   rñ  r®  r¯  rž   rŸ   rh   rq   r³  ræ  r²  rµ  r¸  rœ  r¡  r¦  rÂ  rº  ré  rù  rö  r™   r  Úclassmethodr  r   r  r1  r    rt   r¡   r¢   s   @r'   rŠ  rŠ  Á  s�  ø‡ € ð "&ÐØ/3€Nð 04€Nð !,× 1Ò 1Ø˜K×0Ñ0ô!€Lð 04Ð ð  +×0Ò0°eÀUÔKÐð +6×*;Ò*;ÀÐPRÔ*SÐð )×.Ò.°EÀÈuÔU€B÷ð ÷-ð -÷:ð :÷Oð O÷bA;ð A;ðF7
¸D÷ 7
ò 7
÷r,ð ,÷ N(ð N(÷`+ð +÷ò ð ÷JDñ JDó ðJDðX ñ(
ð 37ð(
ð 37÷(
ò (
ó ð(
ðT ñ
ð 37ð
ð 37÷
ò 
ó ð
÷:*ð *÷e ƒ r)   rŠ  c                óL  € V ^8„  d   QhR\         R\        \        \         R3,          \        \        \         3,          3,          R\        R\
        \        P                  P                  \        \        P                  ,          .\        3,          R\        R,          R\        /# )	r    ÚmodelÚexample_inputs.ÚhooksÚbackendÚdynamicNr"   )r	   rC   r$   r%   r   r   rØ   ÚfxÚGraphModuler¿   ÚTensorr   r5   rŠ  )r&   s   "r'   r(   r(     s�   € ÷ Yñ YÜðYäœ%¤ S �/¬4´´S°­>Ð9Õ:ðYô ðYô ”u—x‘x×+Ñ+¬T´%·,±,Õ-?Ð@ÔBVÐVÕWð	Yô
 �D�[ðYô ñYr)   c                 óö
  aa € ^ RI Ho ^ RIHp ^ RIHpHp ^ RIHp ^ RI	H
p	 Vw  r«\        4       pVe   ^ RIHp V! V4      pV! 4       ;_uu_ 4        V! R4      ;_uu_ 4        \        P                  P                   P#                  R	R
7      ;_uu_ 4        T;_uu_ 4        T;_uu_ 4        \$        P&                  ! W
V4      pVP(                  pVP*                  f   \-        R4      hVP.                  '       g   ^ RIHo  V 3R lV3R llpVVn        \$        P4                  ! V 4      w  ppVP6                  pVf   \-        R4      hVP8                  VP:                  n        VP:                  P>                  p\A        \C        V4      4      pVPD                  PF                  VP*                  PF                  Jd   \-        R4      hV	! VPD                  4      pVPH                  Vn$        \        PJ                  PM                  V4      ;_uu_ 4        \        P                  P                   P#                  RR	RR	RR	RR	RR	/4      ;_uu_ 4        V! VP:                  VPN                  4      p\Q        V\        PR                  4      '       g{   \U        VR4      '       dI   \Q        VPV                  \        PX                  PZ                  P\                  P^                  4      '       g!   \U        VR4      '       d   VP`                  e   \c        V4      pRRR4       RRR4       \Q        X\d        4      '       gE   \U        VR4      '       d   VPV                  pMTp\g        R\i        V4       R2RV R2,           4      h\k        4       pVPl                  '       d    VPo                  VPq                  4       4       V;_uu_ 4        VPs                  VPt                  VR	R	R7      pRRR4       XPv                  f   \-        R4      hV! \y        4       R7      pVPz                   F  pVP}                  V4       K  	  \        \$        P€                  ! V4      VP‚                  VPv                  VP8                  VVPt                  VP…                  4       VV\‡        VRR 4      R!7
      p\‰        VVPŠ                  R"7      pRRR4       RRR4       RRR4       RRR4       RRR4       X#   + '       g   i     ELÙ; i  + '       g   i     ELå; i  + '       g   i     EL2; i  + '       g   i     Ln; i  + '       g   i     Ly; i  + '       g   i     L„; i  + '       g   i     L�; i  + '       g   i     X# ; i)#r   )ÚCheckFunctionManagerr   )Údynamo_timedÚget_metrics_context)Ú#torch_function_mode_stack_state_mgr)ÚTracingContextN)Úset_enable_dynamicÚfullgraph_captureT)Ústrict_autograd_cachezoutput_graph must not be None)ÚGuardFilterEntryc                óV   <€ V ^8„  d   QhR\         S,          R\         \        ,          /# )r    Úguard_entriesr"   )r   r5   )r&   rG  s   "€r'   r(   Ú+aot_compile_fullgraph.<locals>.__annotate__=  s'   ø€ ÷ ñ Ü'Ð(8Õ9ðäœ$•ñr)   c                 ó’   <€ V  Uu. uF5  pVP                   ;'       g    VP                  SP                  9   '       * NK7  	  up# u upi r|   )Ú	is_globalÚ
guard_typeÚ%UNSUPPORTED_SERIALIZATION_GUARD_TYPES)rI  Úgr?  s   & €r'   Únew_guard_filter_fnÚ2aot_compile_fullgraph.<locals>.new_guard_filter_fn=  sY   ø€ ñ +ó	ñ +˜ð ŸK™K÷ Zð ZØ Ÿ|™|Ø3×YÑYñ Z÷ñ +ñ	ð 	ùò 	s
   †Až#Azbackend_input must not be Nonez>fake_mode.shape_env must be the same as output_graph.shape_envrF  Úbypass_autograd_cache_keyÚbundled_autograd_cacheÚ force_non_lazy_backward_loweringÚforce_autograd_cacheÚcompiler_fnr  zCompiled function type z (produced zfrom backend z*) does not implement SerializableCallable.)r8  ÚsaveÚstrict_errorzguards_state must not be None)Úinlined_sourcesÚcompiler_nameÚunknown)
rv   r“   r”   r•   r–   r—   r˜   r™   rŽ   rš   )r“  r®  )FÚtorch._dynamo.guardsr?  Útorch._dynamo.packager   Útorch._dynamo.utilsr@  rA  Ú&torch._dynamo.variables.torch_functionrB  Útorch._guardsrC  r   Útorch._dynamo.eval_framerD  rØ   Ú
_functorchr(  r)  r   rE  Úgraph_capture_outputrt  r–  Úguard_filter_fnÚtorch._dynamo.typesrG  Úget_traced_fnÚbackend_inputr•   Úgraph_moduleÚ_backend_idÚgraphr   r   Ú	fake_modeÚ	shape_envÚtensor_to_contextÚ_guardsÚtracingr7  rG   Ú_TorchCompileInductorWrapperÚhasattrrV  Ú_dynamoÚbackendsÚcommonÚAotAutogradr  r   r   r¬   rK   r   ÚstackÚenter_contextÚtemp_restore_stackÚbuild_guardsr  r”   r¾   Útraced_codeÚadd_coderƒ   Ú_get_signaturer“   Úget_runtime_envr  rŠ  r¹  )!r6  r7  r8  r9  r:  r   r@  rA  rB  rC  rw   rx   Údynamic_ctxrD  Úcapture_outputrc  rP  r¸  rá  rg  rj  rŽ   Útracing_contextr–   rV  Úbuild_guards_ctxÚcheck_fnr™   rz  r-  Úaot_compiled_fnr?  rG  s!   &&&&&                          @@r'   Úaot_compile_fullgraphr„    sz  ù€ õ :Ý0ßEõõ -à!�L€Dä“-€KØÒÝ?á(¨Ó1ˆñ 	×ÕÙÐ(×)Õ)Ü×Ñ×Ñ×%Ñ%¸DÐ%×AÕAßŠß+Ò+ä&×8Ò8¸ÀfÓMˆØ-×BÑBÐØ×,Ñ,Ò4Ü Ð!@ÓAÐAà×$×$Ð$Ý<÷ó ð$ %8ˆEÔ!ä×+Ò+¨EÓ2‰ˆˆAà&×4Ñ4ˆØÒ Ü Ð!AÓBÐBØ1>×1IÑ1Iˆ×"Ñ"Ô.Ø×*Ñ*×0Ñ0ˆÜ,Ô-@ÀÓ-GÓHˆà×#Ñ#×-Ñ-Ø'×4Ñ4×>Ñ>ó?ô !ØPóð ñ )¨×)@Ñ)@ÓAˆØ,9×,KÑ,KˆÔ)ä�M‰M×!Ñ! /×2Õ2Ü×Ñ×#Ñ#×)Ñ)à+¨TØ/°Ø,¨dØ6¸Ø*¨Dð÷õ ñ "Ø×*Ñ*¨M×,HÑ,HóˆKô ˜7¤E×$FÑ$F×GÒGä˜G ]×3Ò3Ü"Ø×+Ñ+¬U¯]©]×-CÑ-C×-JÑ-J×-VÑ-V÷ò ô
 ˜K¨×5Ò5Ø#×-Ñ-Ò9ô EÀ[ÓQ�÷;÷ 3ô@ ˜+Ô';×<Ò<Ü�w ×.Ò.Ø%×1Ñ1‘à%�ÜØ)¬$¨{Ó*;Ð)<¸KÐHØ! + Ð.XÐYõZóð ô %›;ÐØ.×4×4Ð4Ø×*Ñ*Ø3×FÑFÓHô÷ ÒØ+×8Ñ8Ø—‘ 5¨tÀ$ð 9ó ˆH÷ ð
 × Ñ Ò(Ü Ð!@ÓAÐAá ´³Ô7ˆØ/×;Ô;ˆKØ× Ñ  Ö-ñ <ô %Ü#×2Ò2°2Ó6Ø"×0Ñ0Ø!×.Ñ.Ø$×/Ñ/Ø#ØŸ+™+Ø,×<Ñ<Ó>Ø#Ø#Ü  ¨/¸9ÓEô
ˆ	ô .Ø °·±ô
ˆ÷s 	,÷ 	÷ 	B÷ 	*÷ 	ðB Ð÷Y÷ ð ú÷ 3×2Ð2ú÷b ×Ðú÷C 	,×+ú÷ 	�ú÷ 	B×Aú÷ 	*×)ú÷ 	ÖðB Ðús¿   ÁU'Á#3U	ÂUÂ!T.Â,ATÃ;DTÈ<S3ÉCSÌS3ÌB'TÎ> TÏCTÒ5T.Ò=UÓU	ÓU'ÓS0!Ó*	S3Ó3TÓ>	TÔTÔ	TÔT+Ô&T.Ô.T>Ô9UÕUÕU	ÕU$ÕU'Õ'U8	c                ó¸   € V ^8„  d   QhR\         P                  P                  R\        \        \
        \        3,          R,          \
        R,          3,          /# ©r    r6  r"   N)rØ   rÙ   rÚ   rC   r$   r%   r	   )r&   s   "r'   r(   r(   ³  sC   € ÷ ~ñ ~Ü�8‰8�?‰?ð~ä
Œ4””S��>˜DÕ ¤#¨¥*Ð,Õ-ñ~r)   c           	      ó0  € ^ RI HpHp V P                  p\	        V4      P
                  p\        VRR4      p\	        V 4      P
                   RT V'       d   RV 2MR R2p\        V\        P                  P                  4      '       d   RV R23# V! V4      pV! VR	4      \        \        4      J d+   V! VR
4      pVf   WsJp	V	'       d   RMRp
RV RV
 R23# TpKD  \        V\        P                  P                  4      '       d   RV R23#  \        P                  ! V4      ^ ,          pVP                  p\%        T4      pTeŠ   TP'                  R4      ^ ,          R8X  dm   YsJp	T	'       d   RMRp
TP(                  pT! TR
4      pT! TR4      pTe,   Te(   \        TRTP*                  4       R\        TRT4       2pRT RT
 RT RT R23# TR3#   \         \"        3 d0    YsJ d   RRT R23u # RT R\	        T4      P
                   R23u # i ; i)r   )Ú_static_getattrÚinnermost_fnrn   rZ   z
.forward (z named r  Nzº is an nn.Module, which get_traced_fn would rewrite to that module's forward, rooting the guards in its defining namespace; bind a plain function or bound method as model.forward insteadr¹  Ú__wrapped__z$resolves through a Dynamo wrapper toÚisr[   aQ   a torch._dynamo.external_utils function with no __wrapped__ to see through to the forward it wraps -- the wrapper torch._dynamo.error_on_graph_break, patch_dynamo_config, dont_skip_tracing, disable_nested_graph_breaks and override_cudagraphs return skips functools.wraps; bind the forward that decorator wrapped as model.forward insteadzÒ resolves through a Dynamo wrapper to an nn.Module, the module's dispatch rather than its forward; bind that module's forward, or a wrapper over the forward rather than over the module, as model.forward insteadzget_traced_fn cannot resolve zn to a Python function; make model.forward a plain function or bound method so its own globals are used insteadz5 resolves through a Dynamo wrapper to an instance of zy, which get_traced_fn cannot resolve to a Python function; bind a plain function or bound method as model.forward insteadrZ  rØ   zresolves tor  r  z#, a functools.wraps'd wrapper over z, whose globals are z•'s namespace, a torch module a load neither roots guards in nor seeds; bind the module's own forward, defined outside torch, as model.forward instead)ra  rˆ  r‰  rã  rK   rL   r  rG   rØ   rÙ   rÚ   rp  r   r   rf  r¹  r¬   r  rr  Ú	partitionrn   r  )r6  rˆ  r‰  rã  Úforward_typeÚforward_qualnameÚ	describedÚresolvedÚwrappedÚhoppedÚviaÚ	traced_fnr!   rÜ  Úwhatr  s   &               r'   Ú_resolve_guard_scoper–  ³  s­  € ÷ Gà�m‰m€Gô ˜“=×)Ñ)€LÜ˜w¨¸Ó;Ðä�‹;×ÑÐ
  
¨<¨.ß+;ˆWÐ%Ð&Ñ'ÀÐ
DÀAð	Gð ô �'œ5Ÿ8™8Ÿ?™?×+Ò+ØØˆkð Mð Mð
ð 	
ñ ˜GÓ$€HÙ
˜( MÓ
2´d¼>Ó6JÓ
JÙ! (¨MÓ:ˆØŠ?ð Ð,ˆFß<BÑ8ÈˆCØØ�+˜Q˜s˜eð $Jð Jðð ð Šô �(œEŸH™HŸO™O×,Ò,ØØˆkð /ð /ð
ð 	
ð
Ü!×/Ò/°Ó9¸!Õ<ˆ	Ø×%Ñ%ˆô6 ' uÓ-€IØÒ ×!4Ñ!4°SÓ!9¸!Õ!<ÀÔ!GØÐ(ˆß8>Ñ4ÀMˆØ×%Ñ%ˆÙ! )¨]Ó;ˆÙ˜y¨*Ó5ˆØÒ 4Ò#3ô
 ˜4 °·±Ó=Ð>ð ? Ü '¨°ÀÓ FÐGðIð ð Øˆk˜˜3˜%˜q  Ð&:¸9¸+ð FTð Tð
ð 	
ð
 �$ˆ;Ðøô] œ.Ð)ô 
ØÓØØ/°	¨{ð ;+ð +ðò ð ØˆkÐNÜ�H‹~×&Ñ&Ð'ð ($ð$ð
ò 	
ð
ús   Ä)G ÇHÇ5HÈHc                ó€   € V ^8„  d   QhR\         P                  P                  R\         P                  P                  /# )r    r6  r"   ©rØ   rÙ   rÚ   )r&   s   "r'   r(   r(   4  s*   € ÷ ñ ¤E§H¡H§O¡Oð ¼¿¹¿¹ñ r)   c                 óP   € ^ RI Hp \        W4      '       d   V P                  p K  V # )r   )ÚOptimizedModule)ra  rš  rG   Ú	_orig_mod)r6  rš  s   & r'   Ú_unwrap_optimized_modulerœ  4  s    € õ 9ä
�U×
,Ò
,Ø—‘ŠØ€Lr)   c                   ó0   a € ] tR tRt o RtV 3R ltRtV tR# )Ú
ModelInputiB  a  
WIP type: represents a single model input
Which consists of a tuple of arguments and a set of contexts in which to run the model.

For each ModelInput, we'll compile one full graph of the model, and then use the guards generated
to dispatch between the compiled graphs.


c                óˆ   <€ V ^8„  d   Qh/ S[ S[R3,          ;R&   S[S[S[3,          ;R&   S[S[S[,          ,          ;R&   # )r    .rw   rx   Úcontexts)rC   rÇ   r$   r%   r   r   )r&   rˆ   s   "€r'   r(   ÚModelInput.__annotate__B  sI   ø‡ ‚ ñ ‘˜�Õ
Ññ ñ ‘‘f�ÕÑñ ñ Ñ-©fÕ5Õ6Ñ6ò r)   rl   N)rL   rm   rn   ro   rp   r    rt   r¡   r¢   s   @r'   rž  rž  B  s   ø‡ € ñ÷ ƒ r)   rž  a  call the artifact it returns with the module as its first argument if you define forward yourself; if forward is instead defined in a file dynamo skips, as torch.nn's stock modules are -- inheriting it unoverridden counts, since dynamo decides on the file forward is defined in rather than on the class, and torch._dynamo.eval_frame.OptimizedModule._forward_has_skip_rule(model) is the exact test -- or config.wrap_top_frame is set, that capture wrapped the module rather than its __call__ and the artifact takes only the forward argumentsc                óP   € V ^8„  d   QhR\         P                  P                  RR/# r†  r˜  )r&   s   "r'   r(   r(   i  s&   € ÷ M
ñ M
¬¯©¯©ð M
¸Tñ M
r)   c           	      ó@  aaa	€ R UUu. uF  w  r\        WR4      '       g   K  VNK  	  pppR UUu. uF  w  r\        WR4      '       g   K  VNK  	  pppV'       dr   Rp\        P                  ! V RR4      e   Rp\        P	                  R\        V 4      P                  RP                  V4      \        V 4      P                  V\        4       V'       dS   \        P	                  R\        V 4      P                  RP                  V4      \        V 4      P                  \        4       \        P                  P                  oSP                  R3oR	 VV3R
 llo	\        V	3R l\        V 4      P                   4       \        P                  P                  P                   4      pV\        P                  P                  P                   JdE   \        P	                  R\        V 4      P                  \        V 4      P                  \        4       R# R# u uppi u uppi )úforward pre-hooksNrZ   Ú_initialize_hookzê -- but not for this module yet: it carries a lazy initializer, and while it does torch.compile pins the wrapper's forward to _call_lazy_check, which has no aot_compile, so call the module once to materialize it and then wrap it againzõ%s has %s registered; the AOT compiled forward calls %s.forward directly, so those hooks do NOT run and its result may differ from eager -- to keep them, AOT compile torch.compile(model).forward instead, which traces __call__ and runs them%s; %sr  aå  %s has %s registered; the AOT compiled forward calls %s.forward directly, so those hooks do NOT run and the gradients it produces may differ from eager while the forward result does not -- to keep them, AOT compile torch.compile(model).forward with compiled autograd enabled around the capture -- only the private torch._dynamo.compiled_autograd._enable does that, since the config flag of the same name is not read on this path; %s. Note that the artifact saves but cannot be reloadedz+GraphModule.recompile.<locals>.call_wrappedc                ó0   € V ^8„  d   QhR\         R\        /# )r    Úcr"   )rK   r5   )r&   s   "r'   r(   Ú3_warn_dropped_module_dispatch.<locals>.__annotate__Ú  s   € ÷ 
ñ 
œð 
¤$ñ 
r)   c                 ó   <€ \        V 4      R ,          \        V 4      P                  R4      r!\        VRR4      \        VRR4      3pVS8H  ;'       d-    \        VSP                  4      ;'       d    VP
                  RJ # )rù  Ú_wrapped_callrm   Nrn   )rp  r/   r  rG   Ú_WrappedCallÚcls_call)r§  r¸  r‘  Údef_siteÚ	fx_moduleÚ
fx_wrappers   &   €€r'   Úis_fx_wrapperÚ4_warn_dropped_module_dispatch.<locals>.is_fx_wrapperÚ  s|   ø€ Ü˜1“g˜jÕ)¬4°«7¯;©;°Ó+GˆGÜ˜B ¨dÓ3´W¸RÀÐQUÓ5VÐWˆà˜
Ñ"÷ )ð )Ü˜7 I×$:Ñ$:Ó;÷)ð )à× Ñ  DÐ(ð	
r)   c              3   óŒ   <"  € T F9  pR \        V4      9   g   K  S! V4      '       d   K%  \        V4      R ,          x € K;  	  R# 5i)rù  N)rp  )r  r§  r°  s   & €r'   r
  Ú0_warn_dropped_module_dispatch.<locals>.<genexpr>æ  s?   øé € ð 	
á(�ØœT !›WÑ$ô  á-:¸1×-=ô  ŒD�‹G�J×ÒÛ(ùs   ƒAšAªAzï%s overrides __call__; the AOT compiled forward runs what %s.forward compiled to, so that override does NOT run and its result may differ from eager -- to keep it, AOT compile torch.compile(model).forward instead, which traces __call__; %s))r¤  Ú_forward_pre_hooks)zforward hooksÚ_forward_hooks))zbackward pre-hooksÚ_backward_pre_hooks)zbackward hooksÚ_backward_hooks)r  ry   Úgetattr_staticr  r  rK   rL   r\   Ú_REDIRECT_CALLrØ   r;  rh  rA  Ú__mro__rÙ   rÚ   rù  )
r6  ÚlabelÚattrÚforward_hookedÚbackward_hookedÚlazyÚcallr®  r¯  r°  s
   &      @@@r'   Ú_warn_dropped_module_dispatchrÁ  i  sÛ  ú€ ñ,
ôñ
‰KˆEô �5 ×%÷ 	ˆñ
ð ñ ñ
ôñ
‰KˆEô �5 ×%÷ 	ˆñ
ð ñ ÷ ð ˆÜ×!Ò! %Ð);¸TÓBÒNð@ð ô 	�‰ðAô �‹K× Ñ Ø�I‰I�nÓ%Ü�‹K× Ñ ØÜô
	
÷ Ü�‰ð=ô �‹K× Ñ Ø�I‰I�oÓ&Ü�‹K× Ñ Üô	
ô^ —‘×%Ñ%€IØ×$Ñ$Ð&SÐT€J÷
ñ 
ô ô	
ä˜%“[×(Ò(ó	
ô
 	�‰�‰× Ñ ó€Dð ”5—8‘8—?‘?×+Ñ+Ó+Ü�‰ðNô �‹K× Ñ Ü�‹K× Ñ Üö	
ñ ,ùóaùós   ‰H¤H²HÁH.c                ó0   € V ^8„  d   QhR\         R\        /# )r    r-  r"   )rƒ   Ú_BindingKey)r&   s   "r'   r(   r(   ý  s   € ÷ 	ñ 	Ô,ð 	´ñ 	r)   c           
      ó–  € V P                   V P                  P                  P                  4       r!\	        V Uu. uF.  q3P
                  VP                  \        VP                  4      3NK0  	  up4      VP                  P                  \	        VP                  ;'       g    R Uu. uF  p\        V4      NK  	  up4      3# u upi u upi ©Nrl   )r˜   rv   Ú
parametersr2  rC   r7   r^   rF   rŒ  r”  r•  rä   )r-  rš  Úparamsr?  r›  s   &    r'   Ú_binding_keyrÈ  ý  s›   € ð ×'Ñ'¨×)<Ñ)<×)GÑ)G×)NÑ)NÓ)Pˆä¹Ó?¹°1—‘˜Ÿ™¤ 1§9¡9£Ó.¹Ñ?Ó@Ø�‰× Ñ Ü C§K¡K×$5Ð$5°2Ð$5Ó6Ñ$5˜DŒr�$ŽxÑ$5Ñ6Ó7ðð ùÚ?ùâ6s   ¹4CÂ%Cc                óš   € V ^8„  d   QhR\         \        P                  \        ,          R3,          R\         \        R3,          R\        /# )r    Úprior.Úresultsr"   )rC   ÚweakrefÚrefrŠ  r5   )r&   s   "r'   r(   r(   	  sJ   € ÷ Xñ XÜ”—‘Ô0Õ1°3Ð6Õ7ðXäÔ&¨Ð+Õ,ðXô 
ñXr)   c                 óÌ   € \        V 4      \        V4      8H  ;'       dG    \        ;QJ d%    R  \        W4       4       F  '       d   K   R# 	  R# ! R  \        W4       4       4      # )c              3   ó8   "  € T F  w  rV! 4       VJ x € K  	  R # 5ir|   rl   )r  ÚwÚrs   &  r'   r
  Ú _same_results.<locals>.<genexpr>  s   é € Ð-WÑCV¹4¸1©a«c°Q­hÓCVùrð  FT)r©   Úallr—  )rÊ  rË  s   &&r'   Ú_same_resultsrÔ  	  sL   € ô ˆu‹:œ˜W›Ñ%×WÐW¯#«#Ñ-WÄ3ÀuÔCVÓ-W¯#¬#ÐWª#ÐW¨#Ñ-WÄ3ÀuÔCVÓ-WÓ*WÐWr)   c                   ó  a € ] tR tRt o Rt]P                  ! RRRRR7      t]P                  ! R RRRR7      tV 3R lR lt	V 3R	 lR
 lt
V 3R lR ltV 3R lR ltV 3R lR lt]RR/V 3R lR ll4       tV 3R ltRtV tR# )ÚAOTCompiledModeli  aÍ#  A module's forward compiled for several calls, with dispatch over them.

Private and experimental, like ``_aot_compile`` which builds one. Only
``compiled_results`` serializes; ``deserialize`` needs the model again.
``aot_compile_module`` refuses an empty ``compiled_results``; neither the
constructor nor ``deserialize`` checks, and a call on an empty one raises
the no-match report below over ``Tried 0 compiled input(s)``, whose advice
to add a ``ModelInput`` is the fix.

``compiled_results`` may be edited between calls. A call judges the list
it began with, and results that bind alike -- equal parameter names, kinds
and default objects, the same closure cells, as every result of one
``_aot_compile`` has -- share one binding of the call; whether they do is
decided again whenever the list's contents change.

Dispatch walks ``compiled_results`` in order and serves the first result
whose guard check accepts the call. One exit of ``check()`` refuses without
evaluating the tree -- the no-tensor-aliasing exit of the recursive
dict-tag fast path in ``GuardManager::check_nopybind``, reached only with
``use_recursive_dict_tags_for_guards`` on -- so if no check accepted, every
result is checked once more before dispatch gives up; a result whose guards
would pass can therefore be outranked by a later result whose first check
accepted. When neither pass accepts and no checked input's guard tree
raised, the call is served by the first result that opted out through
``disable_guard_check()``, from any index; otherwise it raises the ``No AOT
compiled graph matched this call`` report below. That is all the flag does
here: ``check()`` never reads it, so an opted-out result is scanned and
re-checked like any other and is served in index order when its check
accepts, and on the strength of its opt-out alone only after both the scan
and the re-check found no match and no checked input's guard tree raised
while being evaluated; one opt-out replaces the ``No AOT compiled graph
matched this call`` error for the whole model. A tree that raises rejects
nothing, so a raise from a checked input withholds the opt-out, and the
call raises the no-match ``RuntimeError`` with the last raise of the first
input that raised in dispatch chained as its ``__cause__`` and the report
naming the first that raised of the inputs nobody opted out -- first in
recording order, which is the lowest index only when no input raises for
the first time on the second pass. A raise beside an input whose
guards did match -- the raiser's own second-pass accept included -- or from
an opted-out input when the last resort serves one, is served over: the
graph runs, and the raise is logged on the ``torch._dynamo.aot_compile``
logger with the advice to fix or drop the input that raised. The raise says
nothing about the result that did answer, and refusing would repair
nothing: a tree that raises rejects nothing, and a C++ throw out of it
leaves its relational guard state stale -- wherever the tree guards more
than one tensor against aliasing, a ``NO_TENSOR_ALIASING`` set still
holding the throwing evaluation's tensors, and under
``enable_cpp_symbolic_shape_guards`` (off by default) a
``SYMBOLIC_SHAPE_GUARD`` keeping its ``_args_seen`` count across the throw
-- so its NEXT check can reject a call it fits, and with that config on
accept one it does not, with no raise on record to veto. The advice names
both directions either way: a tree that threw is untrustworthy in both. An
opted-out input's warning names only the accept: ``check()`` ignores the
flag, so a stale accept is served in index order, displacing a later result
that fits -- so the warning names a later match only when a later result
exists. From the last index the warning states the remedy alone: what the
accept displaces there depends on the results ahead of it -- an earlier
opted-out result the last resort would have served, or the no-match report
an enabled input's raise leaves in its place -- and nothing at all where
the last resort would have served this result anyway. A stale rejection
forfeits only the calls the last resort does not then hand it (those an
opted-out result ahead of it takes, or an enabled input's raise withholds);
and its raise leaves its graph reachable only through its own later accept
or the last resort, which any enabled input's raise withholds.

The warning is logged once per ``(input index, exception type name,
opt-out state)`` per model, starting over when a serve that warns finds
``compiled_results`` holding results other than the ones last warned about
-- so a list changed and changed back keeps the old keys in force -- and is
not spent while the logger's level would drop it. The index served
is named in every warning but is not part of the key, so a defect whose
serve moves is reported once, for whichever serve came first. The type name
tells two defects at one index apart only when they raise different
types, which real trees seldom do -- a ``TORCH_CHECK`` that fires in a
guard reaches ``check()`` as ``RuntimeError`` -- so in practice it is one
warning per index and opt-out state.

A ``KeyboardInterrupt`` or ``SystemExit`` anywhere on an unbroken chain of
``SystemError`` causes that reaches dispatch is never read as an answer and
propagates -- as itself from a Python-level guard manager, or as the
``SystemError`` the pybind boundary wrapped it in when a leaf left it set.
An interrupt behind a link of any other kind is not read: one the tree's
own code caught and re-raised sits on ``__context__``, which the unwrap
does not follow, and one an ordinary exception was raised ``from`` is that
exception's own answer, which the walk stops on. Quoting a raise for the
warning reaches user code once more, so an interrupt out of the recorded
exception's ``__str__`` propagates from there too and discards the graph
the warning was about to serve over: that serve neither runs the graph nor
logs anything, and the defect is reported on the next call, which is why
the one-shot is spent only after the warning is out. One leaf keeps an
interrupt from reaching dispatch at all, and every artifact's tree holds
it:
``LAMBDA_GUARD::check_nopybind`` (``guards.cpp:1918-1928``) clears whatever
its lambda raised, of whatever type, and answers false, so an interrupt
raised under a kept lambda guard is read as an ordinary mismatch and
``check_verbose`` quotes its text as the guard's (``:1930-1936``) -- a
pre-existing C++ gap this Python-only stack leaves in place, beside the
dead ``result == -1`` branch in ``DICT_CONTAINS`` and ``SET_CONTAINS``
(``guards.cpp:2476``, ``:2507``), the leaves a ``DICT_NOT_CONTAINS`` or
``SET_NOT_CONTAINS`` guard installs.

When no result matches -- or every result that opted out is withheld by a
raise -- the call raises ``RuntimeError`` with a report headed ``No AOT
compiled graph matched this call``: one line per compiled result quoting
the verbose parts of the guard that refused it, or, in place of any guards,
``<guards did not accept this call in dispatch and accepted it here: ...>``
for a result whose guards accept the call on the report's own evaluation;
``<guard check failed without naming a guard>`` for a refusal that quotes
nothing -- an accessor that answered false with no parts, or a guard whose
raise ``check_verbose`` caught and quoted as a blank ``str(exc)`` part;
``<guard check raised KIND: ...>`` for a tree whose last dispatch evaluation
raised, or that raised out of ``check_verbose`` here, blank message included
(``<guard check raised RuntimeError: >``), the message replaced by ``<str()
raised KIND>`` when the exception's own ``__str__`` raised (``<guard check
raised Boom: <str() raised ValueError>>``); and ``<opted out of guard
checks; withheld because [k]'s guard check raised>`` for a result the raise
withheld. Then one ``For [i, j]:`` line per distinct missing-global hint
naming the entries whose guards failed on a global the process does not
define; a ``fix or drop that artifact`` line naming the first input that
raised of those nobody opted out, when one did; and -- when some checked
tree reached an answer, or the artifact holds no input at all -- the advice
to add a ``ModelInput`` or check which guards ``guard_filter_fn`` kept.
When every rejection that advice rests on followed a raise from its own
tree, it names and quotes those raises and says to fix them first; when no
checked tree ever answered and two or more trees raised, a line saying
every guard tree raised replaces it, unless an opted-out result's line has
already said the raise withheld it; a single raiser's own line already says
as much. When some guard tree raised in dispatch, the last raise of the
first input that raised is the ``__cause__`` of the ``RuntimeError`` rather
than the exception the caller sees: an ``except RuntimeError`` (a
``TORCH_CHECK``) catches the report with the tree's raise one hop down, and
an ``except SystemError`` no longer catches a boundary wrap whose cause is
an ``Exception``; a wrap around a ``KeyboardInterrupt`` or ``SystemExit``
still reaches the caller as itself. A raise only out of ``check_verbose``
here is quoted on its line and chained nowhere.
F)rŒ  r‹  rŽ  r�  c                 ó   € R\        4       3# rÅ  )r¾   rl   r)   r'   Ú<lambda>ÚAOTCompiledModel.<lambda>³  s
   €  ¤S£U¡r)   )r…   r‹  rŽ  r�  c                ó:   <€ V ^8„  d   QhRS[ S[R3,          RS[/# )r    rË  .r"   )rC   rŠ  r5   )r&   rˆ   s   "€r'   r(   ÚAOTCompiledModel.__annotate__¶  s&   ø€ ÷ 	ñ 	¡EÑ*=¸sÐ*BÕ$Cð 	Éñ 	r)   c                ó¤  a€ V P                   w  r#\        W!4      '       d   V# V'       d   \        V^ ,          P                  4      MRoSRJ;'       dI    \        ;QJ d&    V3R lVR,           4       F  '       d   K   RM	  RM! V3R lVR,           4       4      p\
        ;QJ d    . R V 4       F  NK  	  5M! R V 4       4      V3V n         V# )r   Nc              3   óT   <"  € T F  p\        VP                  4      S8H  x € K  	  R # 5ir|   )rÈ  r“  )r  r9  rÑ   s   & €r'   r
  Ú0AOTCompiledModel._binds_alike.<locals>.<genexpr>»  s$   øé € ð )
ÙAL°vŒL˜×*Ñ*Ó+¨sÖ2Ãùs   ƒ%(r  FTc              3   óN   "  € T F  p\         P                  ! V4      x € K  	  R # 5ir|   ©rÌ  rÍ  ©r  rÑ  s   & r'   r
  rÞ  ¾  s   é € Ð&G¹w¸!¤w§{¢{°1§~ ~»wùó   ‚#%)Ú_binding_verdictrÔ  rÈ  r“  rÓ  rC   )r�   rË  rÊ  ÚsharedrÑ   s   &&  @r'   Ú_binds_alikeÚAOTCompiledModel._binds_alike¶  s©   ø€ Ø×-Ñ-‰ˆÜ˜×(Ò(ØˆMß5<Œl˜7 1�:×0Ñ0Ô1À$ˆØ˜D�÷ 
ð 
§S£Sô )
ØAHÈÆó)
§S§S¢Sô )
ØAHÈÆó)
ó &
ˆ÷ "'¤Ñ&G¹wÓ&G§¡Ñ&G¹wÓ&GÓ!GÈÐ PˆÔØˆr)   c                óZ   <€ V ^8„  d   QhRS[ S[R3,          RS[S[S[3,          RS[RR/# )r    rË  .ÚraisedÚservedr"   N)rC   rŠ  r$   rc   rB   )r&   rˆ   s   "€r'   r(   rÛ  Á  sG   ø€ ÷ 1+ñ 1+áÑ*¨CÐ/Õ0ð1+ñ ‘S™)�^Õ$ð1+ñ ð	1+ð
 
ñ1+r)   c           	     ól  € \         P                  \        P                  4      '       g   R # V P                  w  rE\        WA4      '       g>   \        4       p\        ;QJ d    . R V 4       F  NK  	  5M! R V 4       4      V3V n        VP                  4        F˜  w  rg\        V4      w  r‰W,          P                  p
WhV
3V9   d   K/  V
'       d   RV R2pM$V^,           \        V4      8  d   RMRpRV RV R2p\         P                  R	VV\        V	4      VV4       VP                  WhV
34       Kš  	  R # )
Nc              3   óN   "  € T F  p\         P                  ! V4      x € K  	  R # 5ir|   rà  rá  s   & r'   r
  Ú3AOTCompiledModel._warn_swallowed.<locals>.<genexpr>Ð  s   é € Ð!B¹'°Q¤'§+¢+¨a§. .»'ùrâ  zFix or drop input [zF]: its next check can reject a call it fits or accept one it does not.z ahead of a later matchrZ   zInput [zQ] opted out of guard checks, but its next check can accept a call it does not fitz; fix or drop it.zhAOT compiled input [%d]'s guard check raised %s: %s; dispatch served [%d] rather than propagating it. %s)r  ÚisEnabledForÚloggingÚWARNINGÚ_warnedrÔ  r¾   rC   rÌ   rO   rñ  r©   r  rW   rJ   )r�   rË  rè  ré  ÚoverÚwarnedÚirA   r^   rM   ÚenabledÚadviceÚlaters   &&&&         r'   Ú_warn_swallowedÚ AOTCompiledModel._warn_swallowedÁ  s%  € ô ×Ñ¤§¡×0Ò0ÙØ—|‘|‰ˆÜ˜T×+Ò+Ü“UˆFß!œEÑ!B¹'Ó!BŸE™EÑ!B¹'Ó!BÓBÀFÐKˆDŒLØ—L‘L–N‰DˆAÜ+¨AÓ.‰LˆDØ•j×5Ñ5ˆGØ˜Ð! VÔ+Ùßà)¨!¨ð -9ð 9ñ ð 67¸µU¼SÀ»\Ô5IÑ1Èr�à˜a˜Sð !8Ø8=°wÐ>OðQð ô �K‰KðFàØÜ˜“ØØôð �J‰J˜ Ð)Ö*óC #r)   c                ó,   <€ V ^8„  d   QhRS[ RS[ RS[ /# r�  rß   )r&   rˆ   s   "€r'   r(   rÛ  ô  s'   ø€ ÷ h#ñ h#™cð h#©Sð h#±Sñ h#r)   c           
     óü  a aaaaaaaa€ \        S P                  4      p/ o\        4       o\        4       o\        4       o/ oV'       d›   V^ ,          pVP                  ! S P                  .SO5/ SB pVP                  4       p VP                  V4      pSP                  ^ 4       SP                  ^ 4       V'       d!   VP                  ! S P                  .SO5/ SB # VS^ &   \        V4      ^8„  ;'       d    S P                  V4      oR VVVVVV VVV3	R llp	\        VR,          ^4       Fp  w  r«V	! W«4      '       g   K  S'       d   S P                  VSV
4       SP                  4        SP                  4        VP                  ! S P                  .SO5/ SB u # 	  \        V4       Fp  w  r«V	! W«4      '       g   K  S'       d   S P                  VSV
4       SP                  4        SP                  4        VP                  ! S P                  .SO5/ SB u # 	  V Uu. uF  q»P                   NK  	  pp\#        \%        VP&                  S4      4      '       g€   \        V4       Fp  w  r«WÊ,          '       d   K  S'       d   S P                  VSV
4       SP                  4        SP                  4        VP                  ! S P                  .SO5/ SB u # 	  S P)                  VSSSSSVR7      pS'       d-   \+        V4      \-        \/        SP1                  4       4      4      h\+        V4      h  \         d6   p\        T4      '       g   h TS^ &   SP                  ^ 4       Rp Rp?EL»Rp?ii ; iu upi )r   FNc                ó<   € V ^8„  d   QhR\         R\        R\        /# )r    ró  r9  r"   )rc   rŠ  r5   )r&   s   "r'   r(   Ú/AOTCompiledModel.__call__.<locals>.__annotate__<  s"   € ÷ 	ñ 	”sð 	Ô$7ð 	¼Dñ 	r)   c                 óî  <	€ SP                  V 4      pVf8   S'       d   S^ ,          pM VP                  ! SP                  .SO5/ S	B pVSV &   VP                  4       p VP	                  V4      pT'       d   R# SP                  T 4       SP                  T 4       T S
9  d   SP                  T 4       R#   \
         d4   p\        T4      '       g   h TS
T &   SP                  T 4        R p?R# R p?ii ; i)NFT)	r/   rœ  r6  r¡  r¥  rB   rR   rJ   r3  )ró  r9  r™  ÚmanagerÚanswerrA   Úansweredrw   rÞ  rx   rè  r�   rä  ÚtrustedÚ
unanswereds   &&    €€€€€€€€€r'   ÚacceptsÚ*AOTCompiledModel.__call__.<locals>.accepts<  sÚ   ø€ Ø—y‘y “|ˆHØÒßà$ Q�x‘Hà%×6Ò6°t·z±zÐSÀDÒSÈFÑS�HØ#��a‘Ø×0Ñ0Ó2ˆGðØ Ÿ™ xÓ0�÷ Ùð ×Ñ˜qÔ!Ø�L‰L˜ŒOØ˜ŒØ—‘˜A”Ùøô ô Ü*¨1×-Ò-ØØ��q‘	Ø—‘˜qÔ!Ýûðús   ÁB6 Â6C4Ã(C/Ã/C4r  )rè  r  r   r  rÞ  rô  )rC   Úcompiled_resultsr¾   rœ  r6  r¡  r¥  rJ   rB   rR   rö  r©   rå  Ú	enumerater÷  r4  rñ  ró  ÚmapÚ__getitem__Ú_no_match_reportr¬   rA  Úiterr2  )r�   rw   rx   rË  Úfirstr™  rþ  rÿ  rA   r  ró  r9  rô  Úreportr   rÞ  rè  rä  r  r  s   fjl           @@@@@@r'   rù  ÚAOTCompiledModel.__call__ô  sÿ  ÿø€ ô ˜×-Ñ-Ó.ˆð (*ˆÜ"›uˆ
ä ›Uˆä›Eˆà.0ˆ÷ Ø˜A•JˆEØ×-Ò-¨d¯j©jÐJ¸4ÒJÀ6ÑJˆHØ×/Ñ/Ó1ˆGðØ Ÿ™ xÓ0�ð —‘˜Q”Ø—‘˜A”ßð —|’| D§J¡JÐ@°Ò@¸Ñ@Ð@ØˆE�!‰Hô
 �W“ Ñ!×@Ð@ d×&7Ñ&7¸Ó&@ˆ÷	÷ 	ð 	ô8 # 7¨2¥;°Ö2‰IˆAÙ�q×!Ô!ßØ×(Ñ(¨°&¸!Ô<ð —‘”Ø× Ñ Ô"Ø—}’} T§Z¡ZÐA°$ÒA¸&ÑAÒAñ 3ô$ # 7Ö+‰IˆAÙ�q×!Ô!ßØ×(Ñ(¨°&¸!Ô<Ø—‘”Ø× Ñ Ô"Ø—}’} T§Z¡ZÐA°$ÒA¸&ÑAÒAñ ,ñ, >EÓE¹W°6×.Ô.¹WˆÐEô ”3�w×*Ñ*¨FÓ3×4Ò4Ü& wÖ/‘	�Ø—z–zßØ×,Ñ,¨W°f¸aÔ@Ø—L‘L”NØ×$Ñ$Ô&Ø!Ÿ=š=¨¯©ÐE°dÒE¸fÑEÒEñ 0ð ×&Ñ&ØØØ!ØØØØð 'ó 
ˆ÷ ô
 ˜vÓ&¬D´°f·m±m³oÓ1FÓ,GÐGô ˜6Ó"Ð"øô} ô ô +¨1×-Ò-ØØ��q‘	Ø—‘˜qÔ!Ø–ûðüòD Fs   ÂL6 È%M9Ì6M6Í*M1Í1M6c                óà   <€ V ^8„  d   QhRS[ S[R3,          RS[S[S[3,          RS[S[,          RS[S[,          RS[S[,          RS[S[S[S[S[3,          3,          RS[S[	,          R	S[/# )
r    rË  .rè  r  r   r  rÞ  rô  r"   )
rC   rŠ  r$   rc   rB   r¾   r%   rÇ   r¿   r5   )r&   rˆ   s   "€r'   r(   rÛ  ž  sœ   ø€ ÷ { ñ { áÑ*¨CÐ/Õ0ð{ ñ ‘S™)�^Õ$ð	{ ñ
 ™•Hð{ ñ ‘c•(ð{ ñ ‘S•ð{ ñ ‘C™™c¡6˜kÕ*Ð*Õ+ð{ ñ ‘d•ð{ ñ 
ñ{ r)   c          
     óÊ	  a€ R\        V4       R2.p/ p	Rp
Rp\        V3R lV 4       R4      p\        ;QJ d    V3R lV 4       F  '       g   K   RM	  RM! V3R lV 4       4      p\        ;QJ d    V3R lV 4       F  '       g   K   RM	  RM! V3R lV 4       4      p\        S4      '       * p\	        V4       EF0  w  ppSV,          '       g   VP                  R	V R
V R24       K0  VV9   d%   VP                  \        VVV,          4      4       K[  VP                  4       p VP                  VV,          4      pTP                  '       d   TP                  R	T R24       K­  TP                  pRP                  RP                  T4      P                  4       4      pTP                  4       '       g   TP                  R	T R24       EK  \        \!        \"        T4      4      '       dæ   RpTP$                  \&        P(                  J d\   T'       gT   Rp \+        T P,                  4      w  p
pT
f5   \2        P5                  R\/        T P,                  4      P0                  T4       T
e4   T
TP6                  J d$   R\/        T P,                  4      P0                   R2pTP9                  TR7      pT	P;                  T. 4      P                  T4       TP                  R	T RT 24       EK3  	  V	P=                  4        F:  w  ppVP                  RRP                  \!        \>        V4      4       RV 24       K<  	  V'       d   VP                  RV R24       MVe   VP                  RV R24       V'       g	   V'       g    RpV'       d…   V'       g}   \A        V4       Uu. uF-  pSV,          '       g   K  RV R\C        VV,          4       R2NK/  	  pp\        V4      ^8”  d   RMR pVR!V R"RP                  V4       R#\D         R$2,          pVP                  V4       \        V4      ^8”  d"   V'       g   V'       g   VP                  R%4       R&P                  V4      #   \         d:   p\        T4      '       g   h TP                  \        TT4      4        Rp?EKê  Rp?ii ; i  \         d$   pR\/        T4      P0                   2p Rp?EL¤Rp?ii ; iu upi )'a1  A report naming every compiled input and what its guard check said or raised.

``results`` are the results ``AOTCompiledModel.__call__`` judged and
``bound`` the f_locals it judged each on, by index, so the report
explains the same call rather than a fresh one. ``raised`` is the
dispatch record: the LAST exception each index's ``check()`` raised, in
first-raise order, so its first value is the one the report is chained
from. ``unanswered`` holds the indices whose LAST evaluation raised, a
subset of ``raised``'s keys; the lines of those nobody opted out quote
that record instead of evaluating the tree again, an opted-out entry
reading as the opt-out it is whatever its tree did. ``enabled`` is each result's
``_guard_check_enabled`` as the veto read it, so the opt-outs reported
are the ones dispatch acted on.z/No AOT compiled graph matched this call. Tried z compiled input(s):NFc              3   óJ   <"  € T F  pSV,          '       g   K  Vx € K  	  R # 5ir|   rl   ©r  ró  rô  s   & €r'   r
  Ú4AOTCompiledModel._no_match_report.<locals>.<genexpr>Ê  s   øé € Ð7¡&˜Q¨G°A¯J©J—q’q£&ùs   ƒ#™
#c              3   ó6   <"  € T F  pSV,          x € K  	  R # 5ir|   rl   r  s   & €r'   r
  r  Í  s   øé € Ð5©H q˜ Ÿ
š
«Hùó   ƒTc              3   ó6   <"  € T F  pSV,          x € K  	  R # 5ir|   rl   r  s   & €r'   r
  r  Î  s   øé € Ð<±G¨q ¨§
¢
³Gùr  re   z0] <opted out of guard checks; withheld because [z]'s guard check raised>z¨] <guards did not accept this call in dispatch and accepted it here: a guard that does not answer consistently, or guarded state that changed between those evaluations>r[   z; z-] <guard check failed without naming a guard>zresolving it raised z2the no-match report's hint names no %s.forward: %szthis z instance's forward)rã  z] zFor [r  z]: Ú[zi]'s raise, not a guard failure, is what withheld the opted-out input(s) above; fix or drop that artifact.zK]'s guard check raised while checking this call; fix or drop that artifact.zÒAdd a ModelInput covering this call, or check whether guard_filter_fn kept a guard this call cannot satisfy -- both belong to the process that compiles the artifacts, which need not be the one that loaded them.z] <rU   ÚsrZ   z Fix the raisez out of zU first: every rejection this advice rests on followed a raise from its own tree, and rZ  zrEvery guard tree raised while checking this call; the reasons above are those raises, not guards this call failed.r  )#r©   rA  ró  rÓ  r  rÍ  rf   r¡  rò  rB   rR   r9  rô  r\   r]   r:   r  r>   r³  rh   rr   r–  r6  rK   rL   r  r*  r¯  ré  Ú
setdefaultrÌ   r%   r´  r`   Ú_STALE_AFTER_THROW)r�   rË  rè  r  r   r  rÞ  rô  ÚlinesÚhintedr�  Útried_forwardÚraiserÚ	coverableÚtrusted_rejectionÚwithheldró  r9  rþ  rM   rA   ÚpartsÚjoinedrã  Ú
unresolvedrV   ÚhintÚatrõ  Ú	untrustedÚplurals   &&$$$$$d                       r'   r	  Ú!AOTCompiledModel._no_match_reportž  s~  ø€ ð2 >Ü�7‹|ˆnÐ/ð1ð
ˆð (*ˆØ*.ˆØˆô Ô7¡&Ó7¸Ó>ˆ÷ “CÔ5©HÓ5—C—C’CÔ5©HÓ5Ó5ˆ	ß›CÔ<±GÓ<ŸCŸCšCÔ<±GÓ<Ó<ÐÜ˜7“|Ô#ˆÜ" 7×+‰IˆAˆvØ˜1—:”:ð —‘Ø˜!˜ð Ø�xÐ6ð8ôñ Ø�JŒð —‘œ\¨!¨V°A­YÓ7Ô8ÙØ×0Ñ0Ó2ˆGðØ ×.Ñ.¨u°Q­xÓ8�ð �}�}ˆ}Ø—‘Ø˜!˜ð Lð Lôñ
 Ø×-Ñ-ˆEð —X‘X˜dŸi™i¨Ó.×9Ñ9Ó;Ó<ˆFØ—<‘<—>’>ð —‘˜s 1 #Ð%RÐSÔTÚÜ”3Ô.°Ó6×7Ò7Ø&*�Ø×&Ñ&¬+×*>Ñ*>Ó>Ç}Ø$(�MðQÜ/CÀDÇJÁJÓ/OÑ,˜ *ð  Ò'ÜŸ	™	ØPÜ  §¡Ó,×5Ñ5Ø&ôð
 Ò'¨H¸×8MÑ8MÓ,Mð
 !&¤d¨4¯:©:Ó&6×&?Ñ&?Ð%@Ð@SÐT�GØ×2Ñ2¸7Ð2ÓC�Ø×!Ñ! $¨Ó+×2Ñ2°1Ô5Ø�L‰L˜3˜q˜c  F 8Ð,×-ña ,ðb Ÿ™ž‰HˆD�"Ø�L‰L˜5 §¡¬3¬s°B«<Ó!8Ð 9¸¸T¸FÐCÖDñ 'çØ�L‰LØ�F�8ð Kð Kõð Òð �L‰LØ�F�8ð )ð )ô÷ ŸGð3ð ÷ ×!2ô $ HÔ-óá-˜Ø˜q—z‘zô 8�a˜�s˜#œk¨&°­)Ó4Ð5°QÓ7Ù-ð ð ô
 !$ I£°Ô 2™¸�ØØ$ V H¨H°T·Y±Y¸yÓ5IÐ4Jð K)ä);Ð(<¸Að?õ�ð
 �L‰L˜Ô Üˆv‹;˜Œ?§8·Ið �L‰LðGôð �y‰y˜ÓÐøôW ô ô +¨1×-Ò-ØØ—‘œ\¨!¨QÓ/Ô0ÞûðûôB %ô Qà';¼DÀ»I×<NÑ<NÐ;OÐ%Pž
ûðQüòhs<   Ä)Q(ÈR/Î&S Î<S Ñ(R,Ñ3-R'Ò'R,Ò/SÒ:SÓSc                ó    <€ V ^8„  d   QhRS[ /# )r    r"   rU  )r&   rˆ   s   "€r'   r(   rÛ  [	  s   ø€ ÷ "ñ "™5ñ "r)   c                ó´   € . pV P                    F1  pVP                  \        P                  V4      P                  4       K3  	  \
        P                  ! V4      # r|   )r  rÍ  rŠ  r  rT  r  Údumps)r�   r¤   r9  s   &  r'   r  ÚAOTCompiledModel.serialize[	  sF   € ð ˆØ×+Ô+ˆFØ�K‰KÔ+×5Ñ5°fÓ=×MÑMÖNñ ,ä�|Š|˜DÓ!Ð!r)   rÊ  Nc                ó|   <€ V ^8„  d   QhRS[ P                  P                  RS[RS[S[S[3,          R,          RR/# )r    r6  r¤   rÊ  Nr"   rÖ  )rØ   rÙ   rÚ   r›   r$   r%   r	   )r&   rˆ   s   "€r'   r(   rÛ  e	  sN   ø€ ÷ `,ñ `,á�x‰x�‰ð`,ñ ð`,ñ
 ™C¡˜H•~¨Õ,ð`,ð 
ñ`,r)   c               óÞ  € ^ RI Hp ^ RIHpHp \        V4      p\        V4       RpTpVf   \        V4      w  r‡\        P                  ! V4      p	V	 U
u. uF  p
\        V
4      NK  	  pp
. pV Fu  pV! V! \        P                  ! / 4      4      4      ;_uu_ 4        V! 4       ;_uu_ 4        VP                  \        P                  VVVR7      4       RRR4       RRR4       Kw  	  VeQ   \         ;QJ d    R V 4       F  '       g   K   RM	  RM! R V 4       4      '       d   \"        P%                  RV4       V ! W4      # u up
i   + '       g   i     L}; i  + '       g   i     Kþ  ; i)	ax  Rebuild the compiled forward of ``model`` from ``serialize()`` output.

``model`` may be the module itself or the wrapper ``torch.compile``
returned for it, which is unwrapped to the module that was traced.

Guards on globals are evaluated, by reference, against the live
``__globals__`` of the function ``model.forward`` resolves to, and the
compiled bytecode reads the globals serialized with the artifact except
for the names a kept guard's own source IS -- not a global reached only
through a sub-path of it, and never the recorded ``__builtins_dict___N``
key -- which are re-taken from that live dict on every call. So a value
the graph reads live is one a passing guard certifies, every other global
is the one it was traced with, and a guarded global the live dict lacks
fails the guard rather than falling back to the serialized value. The
re-take writes into each compiled result's own ``fn.__globals__``,
shared by every call that result serves, so two threads served by one
loaded model while either rebinds a guarded global race on that dict,
with or without the GIL; a caller who needs isolation loads once per
thread.
Rebinding a guarded global after the load is therefore what the graph
computes with once the guards accept it, and the certification is only as
strong as the guard's type: a kept ``TENSOR_MATCH`` accepts a same-metadata
swap, checking metadata and not values, and a root ``TYPE_MATCH`` on a
container checks its type, not the members the graph reads through it.
It also stops at a result that opted out through ``disable_guard_check()``:
dispatch serves that result once every checked result refused the call,
and the re-read serves it whatever the live dict binds -- a value a kept
guard refused included, or, for a name the dict no longer binds, the last
value read -- since holding the load-time values instead would be no more
checked, only stale.
Loading also MUTATES that dict: a recorded ``__import_*`` alias a kept guard
still reads, that builtins key when a guard source names it, and the
``___unnamed_scope_*`` key of an inlined frame's globals when the graph
lifted a value through it -- bound to the dict serialized with the artifact,
since the key embeds an ``id()`` from the tracing process that no live
namespace holds -- are inserted (never overwriting an existing key) so
guards rooted at them resolve in a process that never traced. Every CALL
writes as well, in the other direction: the certified names are written
into the globals of the compiled result that serves the call, which every
call that result serves shares, so two threads whose calls land on one
result while either rebinds a guarded global race on that dict and one
can run the graph on the value the other thread's guard check accepted. A
caller who needs isolation loads the artifact once per thread, since each
load builds one such dict per serialized result.

A symbolic-shape guard on a global with a dynamic dim resolves its
operands in that live dict as well, whether it installs as a Python
lambda (the default) or as a C++ guard under
``enable_cpp_symbolic_shape_guards``, and counts as a global guard for
the warning below; the graph still keeps the tensor serialized with it,
since a size check certifies no value.

There is no live scope only when ``model.forward`` does not resolve to a
Python function of its own: ``get_traced_fn`` cannot resolve it, or it is
an ``nn.Module``, as given or reached through a Dynamo wrapper (the
module's dispatch under ``config.wrap_top_frame``), or it is a
``torch._dynamo.external_utils`` function with no ``__wrapped__`` to see
through (``torch._dynamo.error_on_graph_break``'s wrapper), or it resolves
to a function torch itself defines, whose globals are a torch module's
namespace (the module's dispatch otherwise, ``torch.compile(mod).forward``,
included), or the target a Dynamo wrapper is seen through to does not
resolve itself; guards then resolve against the scope rebuilt from the
artifact, where they check nothing useful, and a guard rooted at any
global but those aliases and that key warns to say so, naming the cause.

The function ``model.forward`` resolves to is the one bound as ``forward``
seen through Dynamo's own wrappers -- the ones ``torch.compile``,
``torch._dynamo.disable``, ``run``, ``optimize`` and ``optimize_assert``
return, and any function defined in ``torch._dynamo.external_utils`` that
carries ``__wrapped__``, of which ``torch.compiler.wrap_numpy`` and
``torch._dynamo.disable(recursive=False)`` are the two a caller applies --
but not through any other wrapper the caller applied: a
``functools.wraps``'d decorator over it, in the class body or rebound on
the instance, resolves to the decorator's own function, so the scope is
the decorator's module. That is the scope a capture of the decorated
forward records as well -- Dynamo traces the decorator as the root frame
-- so an artifact captured through the same decorator loads and reads
that module's guarded globals live, and one captured from the undecorated
forward fails its global guards there, with ``KeyError on G['NAME']`` and
a hint naming that module; load an artifact onto the forward it was
captured from.
``wrap_numpy`` rebound on the instance is seen through, so the scope is
the forward's own module -- what an artifact captured from the
undecorated forward, the only artifact that shape can load, recorded;
applied in the class body it binds a method, which is not seen through
and resolves to ``wrap`` in ``external_utils``' own namespace, refused as
any torch namespace is.

``guard_globals``, when supplied, is that scope instead of anything
resolved from ``model.forward``, so a caller who wants neither the live
read nor the write passes its own dict; it is seeded, bound into the
bytecode's globals at load, and re-read from on the same terms.

Hooks registered on ``model`` do not run: the artifact calls ``forward``
directly. The artifact records none, so what is warned about here is what
``model`` carries at this call; the ones it carried at capture were
warned about there, and one registered after this call is dropped
silently. An overridden ``__call__`` is dropped the same way, and warned
about the same way. Only ``model`` itself is inspected: a hook or a
``__call__`` override a SUBMODULE carries only in the loading process is
dropped silently too, because the graph baked in whatever the capture
traced through that submodule's ``nn.Module.__call__``. Hooks registered
globally (``register_module_forward_hook`` and friends) are dropped
without a warning only when the returned ``AOTCompiledModel`` is called
directly: they still run on the wrapper's own ``_call_impl`` when the
artifact is served through ``OptimizedModule``, so only the per-instance
dicts are worth warning about.
)rA  )Úcompile_contextÚCompileContextNr  c              3   ó8   "  € T F  qP                   x € K  	  R # 5ir|   )r²  )r  r9  s   & r'   r
  Ú/AOTCompiledModel.deserialize.<locals>.<genexpr>ø	  s   é € ð ;
Ù4D¨&×%Ö%Ó4Dùrð  TFa�  no live guard scope could be resolved from model.forward, so global guards on this artifact resolve against the scope rebuilt from the serialized bytecode instead, where they check nothing useful: one on a global the graph lifted is compared against the value serialized with it and cannot fail, and one on a global that scope does not carry cannot be satisfied, so the call will report no match. %s.)r^  rA  r`  r/  r0  rœ  rÁ  r–  r  Úloadsr°   r   Úget_compile_idrÍ  rŠ  r  ró  r  r  )r  r6  r¤   rÊ  rA  r/  r0  r  r!   rË  r9  Úpayloadsr  r­   s   &&&$          r'   r   ÚAOTCompiledModel.deserialized	  sG  € õh 	<ßAô )¨Ó/ˆä% eÔ,Ø&*Ð#ØˆØŠ=Ü1EÀeÓ1LÑ.ˆEä%Ÿ|š|¨DÓ1ˆÙDKÓLÁG¸&Ô-¨fÖ5ÁGˆÐLØÐÛˆAá¡¬}×/KÒ/KÈBÓ/OÓ P×QÕQÙ#×%Õ%à ×'Ñ'Ü'×<Ñ<ØØ&+Ø4Oð =ó ô÷ &÷ RÑQñ ð 'Ò2·s³sñ ;
Ù4Dó;
·s·s²sñ ;
Ù4Dó;
÷ 8
ò 8
ô �K‰Kð5ð ,ô	ñ �5Ó+Ð+ùò9 M÷
 &×%ú÷ R×QÐQús*   ÁEÂEÂ+(EÃEÅEÅEÅE,c                óH  <€ V ^8„  d   Qh/ S[ P                  P                  ;R&   S[S[,          ;R&   S[S[S[P                  S[,          R3,          S[3,          ;R&   S[S[S[P                  S[,          R3,          S[	S[S[
S[S[3,          ,          3,          ;R&   # )r    r6  r  .rã  rð  )rØ   rÙ   rÚ   r¿   rŠ  rC   rÌ  rÍ  r5   r¾   rc   r%   )r&   rˆ   s   "€r'   r(   rÛ    s¢   ø‡ ‚ ñV �8‰8�?‰?ÑñW ñX Ñ.Õ/Ñ/ñY ñf ™E¡'§+¡+Ñ.AÕ"BÀCÐ"GÕHÉ$ÐNÕOñ ñg ñ@ Ù‰g�k‰kÑ-Õ.°Ð3Õ4±c¹%ÁÁSÉ$ÀÕ:OÕ6PÐPõñ òA r)   )rã  rð  )rl   F)rL   rm   rn   ro   rp   rž   rŸ   rã  rð  rå  r÷  rù  r	  r  r4  r   r    rt   r¡   r¢   s   @r'   rÖ  rÖ    s­   ø‡ € ñGðd 	×Ò +°EÀ5ÈuÔUð ð 	×ÒÙ+°%ÀÈUô	ð ÷	ð 	÷1+ð 1+÷fh#ð h#÷T{ ð { ÷z"ð "ð ð`,ð
 04÷`,ñ `,ó ð`,÷k ƒ r)   rÖ  c                ó  € V ^8„  d   QhR\         P                  P                  R\        \        ,          R\
        R\        \         P                  P                  \        \         P                  ,          .\        3,          R\        /# )r    r6  Úinputsr8  r9  r"   )rØ   rÙ   rÚ   r¿   rž  r   r   r;  r<  r=  r   rÖ  )r&   s   "r'   r(   r(   
  sj   € ÷ .5ñ .5Ü�8‰8�?‰?ð.5ä”Õð.5ô ð.5ô ”u—x‘x×+Ñ+¬T´%·,±,Õ-?Ð@ÔBVÐVÕWð	.5ô
 ñ.5r)   c                ó  a aa€ \        S 4      o \        S 4       R VVV 3R llp. pV F0  p\        P                  RV4       VP	                  V! V4      4       K2  	  \        V4      ^ 8X  d   \        R4      h\        S V4      # )aÛ  
Compiles a single nn.Module with any number of inputs, and returns a compiled forward function.

``model`` may be the module itself or the wrapper ``torch.compile`` returned
for it, which is unwrapped to the module to trace. ``model.forward`` is what
gets traced, so the per-instance hooks ``nn.Module.__call__`` would dispatch
on, and an overridden ``__call__`` eager reaches instead of it, are dropped
from the result; both are warned about, as they are on the load path.
c                ó0   € V ^8„  d   QhR\         R\        /# )r    Úmodel_inputr"   )rž  rŠ  )r&   s   "r'   r(   Ú(aot_compile_module.<locals>.__annotate__ 
  s   € ÷ ñ ¬*ð Ô9Lñ r)   c           	      ó  <€ V P                   V P                  3pSP                  p\        4       ;_uu_ 4       pV P                   F  pVP                  V4       K  	  \        VVSSR 7      uuRRR4       #   + '       g   i     R# ; i))r8  r9  N)rw   rx   rã  r   r   rw  r„  )r<  r7  Úorig_forwardrv  Úctxr9  r8  r6  s   &    €€€r'   Úcompile_single_graphÚ0aot_compile_module.<locals>.compile_single_graph 
  si   ø€ Ø%×*Ñ*¨K×,>Ñ,>Ð?ˆØ—}‘}ˆÜ�[Œ[˜EØ"×+Ô+�Ø×#Ñ# CÖ(ñ ,ä(ØØØØô	÷ �[�[‹[ús   ¸3A6Á6B	zCompiling input %s..z%Expected at least one compiled result)rœ  rÁ  r  ÚinforÍ  r©   r–  rÖ  )r6  r9  r8  r9  rA  r  r<  s   f&ff   r'   Úaot_compile_modulerD  
  s€   ú€ ô* % UÓ+€EÜ! %Ô(÷ò ð ÐÛˆÜ�‰Ð'¨Ô5Ø×ÑÑ 4°[Ó AÖBñ ô ÐÓ Ô!ÜÐDÓEÐEä˜EÐ#3Ó4Ð4r)   r|   )hr0   rž   ÚenumrÐ  ry   r¥   rî  r_  r  Úrero  rb  rœ   rÌ  Úcollections.abcr   r   Ú
contextlibr   r   r   r   Útypingr	   r
   r   rØ   Útorch.fxÚtorch._dynamo.convert_framer   Útorch._dynamo.graph_utilsr   r]  r   r   r   r   rZ   r   r   Úaot_compile_typesr   r   r8  r   r.   r   r   rt  r   r­  r   Ú	getLoggerrL   r  r  rÇ   r¶  r  Úcompiler8   r…  Ú_IMPORT_ALIAS_PREFIXÚ_BUILTINS_DICT_PREFIXrÒ  r<   r2   r>   rO   rR   rW   r`   rf   ÚEnumrh   rª   r«   r�   rƒ   r°   r²   rÂ   Ú	UnpicklerrG  rR  rl  rr  r|  rˆ  rŠ  r„  r–  rœ  rž  r¹  rÁ  rC   r%   rc   rÃ  rÈ  rÔ  rÖ  rD  rl   r)   r'   Ú<module>rT     s‰  ðÛ Û Û Û Û Û 	Û Û 	Û Û 	Û 
Û Û Û ß .ß EÑ EÝ !ß /Ñ /ã Û Ý 7Ý 9÷ó ÷ ,÷õ ÷ ß8Ý4Ý#ð ×Ò˜Ó!€ð Pð ñ ‹8€ðSð ð —Z’ZÐ FÓGÐ ð ŸšÐ$7Ó8Ð ð  #Ð Ø+Ð Ø*Ð àØØðÐ õ5õNõ)õ@9õ
6õ$Nõ@ô$�$—)‘)ô $ð  Ð àÐ õ%ð ÷Oð Oó ðOõ$	ð ×Ñ÷>ð >ó ð>ôBÐ+ô ôD
'˜&×*Ñ*ô 'ð  ÷ð ó ðõ%õJõõ4ð& ÷R	*ð R	*ó ðR	*÷jYõx~õBð ÷7ð 7ó ð7ð6ð õM
ðb �E˜%  S¨# Õ.°Ð3Õ4°e¸CÀ¸HµoÀuÈSÐRUÈXÅÐVÕW€õ	õXð ÷t,ð t,ó ðt,÷n.5r)   