+
    Aåûji  ã                   óÌ  a € R t0 t R t^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^ RI	H
t
Ht ^ RIHt ]P                  P                  ]P                  P!                  ]P                  P#                  ]4      4      R4      tR]P(                  R]P*                  R	]P,                  R
]P.                  /t] ^ k  ! R R4      t]P4                  R R l4       tR R ltR R ltR R ltR# )aµ  Native-AOT coverage for the Python JIT override router.

Ops under ``torch/_native/ops/<op>/`` opt into AOT with an ``aot.py`` declaration
module (contract: tools/native_aot/decl.py). The router checks coverage once per
call, ahead of its cond chain, so a covered call declines the Python route and
reaches the embedded kernel through the router's aten fallback. Anything uncovered
keeps its JIT override eligibility.

A call is covered only when the build embedded kernels for its op and device.
The generated C++ predicate is authoritative; its Python fallback checks whether
some point of ``kernel_precompile_grid()`` matches every field
``covered_axes()`` returns. Dtypes match by canonical torch
dtype, grid-only fields like block sizes are ignored, and an exception degrades to
uncovered. The C++ dispatch chain in the AOT library is the authority on what
actually launches, and drift is benign: a call both sides decline lands on stock
aten.
N)ÚCallable)ÚAny)Údecl_id_for_opÚload_by_path)Úexpand_specsÚopsÚfloat32Úbfloat16Úfloat16Úfloat64c                   ó„   a € ] tR t^(t o 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4       t	Rt
V tR# )Ú	_Coveragec                óP   <€ V ^8„  d   QhRS[ RS[RS[3,          RS[S[,          /# )é   ÚopÚcovered_axes.Úgrid)Ústrr   ÚdictÚlist)ÚformatÚ__classdict__s   "€ÚVC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\_native\aot_manifest.pyÚ__annotate__Ú_Coverage.__annotate__)   s/   ø€ ÷ .ñ .™3ð .©h°s¹D°yÕ.Að .ÉÉdÍñ .ó    c                ób   € Wn         W n        W0n        R V n        RV n        R V n        / V n        R # )NF)Ú_opÚ_covered_axesÚ_gridÚ_cpp_coversÚ_cpp_probedÚ_archsÚ
_available)Úselfr   r   r   s   &&&&r   Ú__init__Ú_Coverage.__init__)   s2   € ØŒØ)ÔØŒ
ð
 8<ˆÔØ ˆÔØ.2ˆŒØ+-ˆŽr   c                ó:   <€ V ^8„  d   QhRS[ P                  RS[/# )r   ÚdeviceÚreturn)Útorchr(   Úbool)r   r   s   "€r   r   r   6   s   ø€ ÷ &ñ &¡5§<¡<ð &±Dñ &r   c                ó¸  € VP                   R8w  g   \        P                  P                  e   R# V P                  fQ    R\        V P                  4       2p\        \        \        P                  P                  V4      ! 4       4      V n        V P                  '       g   R# VP                  pVf   \        P                  P                  4       pW0P                   9  dL   \        P                  P#                  V4      w  rEV^
,          V,           V P                  9   V P                   V&   V P                   V,          #   \        \        3 d    RT n         LÊi ; i)z9Whether this build embedded this op for the given device.ÚcudaFÚarchs_© )Útyper*   ÚversionÚhipr"   r   r   ÚtupleÚgetattrr   Ú_native_aotÚAttributeErrorÚRuntimeErrorÚindexr-   Úcurrent_devicer#   Úget_device_capability)r$   r(   Únamer8   ÚmajorÚminors   &&    r   Úis_availableÚ_Coverage.is_available6   sÿ   € à�;‰;˜&Ô ¤E§M¡M×$5Ñ$5Ò$AÙØ�;‰;Òð!Ø¤¨t¯x©xÓ 8Ð9Ð:�Ü#¤G¬E¯I©I×,AÑ,AÀ4Ô$HÓ$JÓK�”ð �{�{ˆ{ÙØ—‘ˆØŠ=Ü—J‘J×-Ñ-Ó/ˆEØŸ™Ô'Ü Ÿ:™:×;Ñ;¸EÓB‰LˆEØ%*¨R¥Z°%Õ%7¸4¿;¹;Ñ%FˆD�O‰O˜EÑ"Ø�‰˜uÕ%Ð%øô #¤LÐ1ô !Ø �–ð!ús   ¿AD> Ä>EÅEc                óB   <€ V ^8„  d   QhRS[ RS[3,          R,          /# )r   r)   .N)r   r+   )r   r   s   "€r   r   r   J   s"   ø€ ÷ 
 ñ 
 ¡X¨c±4¨iÕ%8¸4Õ%?ñ 
 r   c                ó6  € V P                   '       g[   R V n         \        \        P                  RR4      pVe5    \        VR\	        V P
                  4       24      V n        V P                  # V P                  #   \        \        3 d     T P                  # i ; i)Tr5   NÚcovers_)	r!   r4   r*   r   r   r   r    r6   r7   )r$   Únss   & r   Ú_resolve_cpp_coversÚ_Coverage._resolve_cpp_coversJ   s�   € Ø××ÐØ#ˆDÔÜœŸ™ M°4Ó8ˆBØŠ~ðä'.¨r°W¼^ÈDÏHÉHÓ=UÐ<VÐ3WÓ'X�DÔ$ð ×ÑÐˆt×ÑÐøô '¬Ð5ô ØØ×ÑÐðús   º'A9 Á9BÂBc                ó,   <€ V ^8„  d   QhRS[ RS[RS[/# )r   ÚargsÚkwargsr)   )r3   r   r+   )r   r   s   "€r   r   r   V   s"   ø€ ÷  ñ  ™5ð  ©$ð  ±4ñ  r   c                ó„  a a€ \         P                  P                  4       '       g   R # S P                  4       pVe
    V! V/ VB #  . VOVP                  4       O5p\        R V 4       R4      pVe"   S P                  VP                  4      '       g   R # S P                  ! V/ VB oS P                   Fd  p\        ;QJ d.    T T3R lTP                  4        4       F  '       d   K   R M#	  RM! T T3R lTP                  4        4       4      '       g   Kc   R# 	  R #   \         d     R # i ; i  \         d     R # i ; i)FNc              3   ój   "  € T F)  p\        V\        P                  4      '       g   K%  Vx € K+  	  R # 5i©N)Ú
isinstancer*   ÚTensor)Ú.0Úargs   & r   Ú	<genexpr>Ú#_Coverage.covers.<locals>.<genexpr>f   s   é € ÐK¡	˜¬Z¸¼U¿\¹\×-J—’£	ùs   ‚"3©
3c              3   ó|   <"  € T F1  w  rVS9   g   K  SP                  SP                  V4      V4      x € K3  	  R # 5irK   )Ú_field_matchesÚget)rN   ÚfÚvr$   Úvaluess   &  €€r   rP   rQ   p   s;   øé € ð á)‘D�AØ˜‘;ô 6�×#Ñ# F§J¡J¨q£M°1×5Ð5Û)ùs   ƒ<“)<T)r*   Ú_CÚ_get_native_aot_enabledrD   Ú	ExceptionrW   Únextr>   r(   r   r   ÚallÚitems)r$   rG   rH   ÚcppÚ	call_argsÚtensorÚpointrW   s   f&&    @r   ÚcoversÚ_Coverage.coversV   s!  ù€ ô �x‰x×/Ñ/×1Ò1ÙØ×&Ñ&Ó(ˆØŠ?ðÙ˜DÐ+ FÑ+Ð+ð	Ø1˜$Ð1 §¡£Ñ1ˆIÜÙK¡	ÓKØóˆFð Š~ T×%6Ñ%6°v·}±}×%EÒ%EÙØ×'Ò'¨Ð8°Ñ8ˆFð —Z”ZˆEß‹sõ à!ŸK™KœMó�s�sŠsõ à!ŸK™KœMó÷ ô ò
 ñ  ñ øô- ô âðûô ô 	âð	ús*   ¾D ÁAD0 ÂD0 ÄD-Ä,D-Ä0D?Ä>D?c                ó,   <€ V ^8„  d   QhRS[ RS[ RS[/# )r   ÚgotÚexpectedr)   )r   r+   )r   r   s   "€r   r   r   y   s"   ø€ ÷ ñ ™Cð ©3ð ±4ñ r   c                ó    € \        V \        P                  4      '       d,   \        V\        4      '       d   \        P                  W4      pW8H  # rK   )rL   r*   Údtyper   Ú_SPEC_DTYPESrT   )re   rf   s   &&r   rS   Ú_Coverage._field_matchesx   s7   € ä�cœ5Ÿ;™;×'Ò'¬J°xÄ×,EÒ,EÜ#×'Ñ'¨Ó;ˆHØ‰Ðr   )r"   r#   r   r    r!   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r%   r>   rD   rb   ÚstaticmethodrS   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r   (   sB   ø‡ € ÷.ð .÷&ð &÷(
 ð 
 ÷ ð  ðD ÷ó ör   r   c                óh   € V ^8„  d   QhR\         \        \        \        3,          \        3,          /# )r   r)   )r   r3   r   r   )r   s   "r   r   r   €   s%   € ÷ ñ œœU¤3¬ 8�_¬iÐ7Õ8ñ r   c            
      óN  € / p \         P                  P                  \        4      '       g   V # \	        \         P
                  ! \        4      4       FÐ  p\         P                  P                  \        VR 4      p\         P                  P                  V4      '       g   KO  \        V R2V4      p\        VRR4      pVe   V! 4       MV. FS  p\        VP                  VP                  \        VP                  4       4      4      WP                  VP                  3&   KU  	  KÒ  	  V # )zaot.pyÚ_aotÚdeclarationsN)ÚosÚpathÚisdirÚ_OPS_DIRÚsortedÚlistdirÚjoinÚexistsr   r4   r   ÚATEN_OPr   r   Úkernel_precompile_gridÚDISPATCH_KEY)ÚcoverageÚentryrw   ÚmodÚfamilyÚds         r   Ú_load_coverager†      sÛ   € à13€HÜ�7‰7�=‰=œ×"Ò"ØˆÜœŸ
š
¤8Ó,Ö-ˆÜ�w‰w�|‰|œH e¨XÓ6ˆÜ�w‰w�~‰~˜d×#Ò#Ùô
 ˜e˜W D˜>¨4Ó0ˆÜ˜˜n¨dÓ3ˆØ#Ò/‘”°c°UÒ:ˆAÜ4=Ø—	‘	˜1Ÿ>™>¬<¸×8PÑ8PÓ8RÓ+Só5ˆH—i‘i §¡Ð0Ó1ó ;ñ .ð €Or   c                ó0   € V ^8„  d   QhR\         R\         /# )r   Ú	op_symbolr)   )r   )r   s   "r   r   r   •   s   € ÷ Gñ Gœ#ð G¤#ñ Gr   c                 ó†   € V P                  R 4      ^ ,          pVP                  R4      '       g   VP                  R4      # T# )Ú.Ú__Ú_)ÚsplitÚendswithÚremovesuffix)rˆ   Úbases   & r   Ú
_base_namer‘   •   s;   € ð �?‰?˜3Ó Õ"€DØ)-¯©°t×)<Ò)<ˆ4×Ñ˜SÓ!ÐFÀ$ÐFr   c                óJ   € V ^8„  d   QhR\         R\         R\        R,          /# )r   rˆ   Údispatch_keyr)   N)r   r   )r   s   "r   r   r   œ   s&   € ÷ <ñ <œCð <¬sð <´yÀ4Õ7Gñ <r   c                ó~   € \        4       pVP                  W34      pVe   V# VP                  \        V 4      V34      # )a}  The op's AOT coverage, or None if it has no declaration.

The exact registration symbol wins over the base name, since a declaration may
be overload-qualified ("gt.Tensor") while a base-named one serves every overload
of its structured group. The router calls ``covers`` once per call rather than
per cond, which would pay the check N times on a multi-path op for the same
answer.
)r†   rT   r‘   )rˆ   r“   ÚtableÚcs   &&  r   Úget_coverager—   œ   s@   € ô Ó€EØ�	‰	�9Ð+Ó,€AØ‚}ØˆØ�9‰9”j Ó+¨\Ð:Ó;Ð;r   c          
      óT   € V ^8„  d   QhR\         R\         R\        R\        R\        /# )r   rˆ   r“   rG   rH   r)   )r   r3   r   r+   )r   s   "r   r   r   ¬   s/   € ÷ 4ñ 4”cð 4¬ð 4´Eð 4Ä4ð 4ÌDñ 4r   c                óR   € \        W4      pVRJ;'       d    VP                  W#4      # )zETrue if an AOT-embedded kernel serves this call of aten::<op_symbol>.N)r—   rb   )rˆ   r“   rG   rH   r–   s   &&&& r   rb   rb   ¬   s'   € ä�YÓ-€AØ�Dˆ=×3Ð3˜QŸX™X dÓ3Ð3r   c                óv   € V ^8„  d   Qh/ ^ \         9   d%   \        \        \        P                  3,          ;R&   # )r   ri   )Ú__conditional_annotations__r   r   r*   rh   )r   s   "r   r   r      s0   € ÷ ñ ÷>ò Œd”3œŸ™Ð#Õ$ñ ò?r   ) r›   Ú__doc__Ú	functoolsrv   Úcollections.abcr   Útypingr   r*   Útorchgen.native_aot_declr   r   Útorchgen.native_aot_spec_gridr   rw   r|   ÚdirnameÚabspathÚ__file__ry   r   r	   r
   r   ri   r   Úcacher†   r‘   r—   rb   r   )r›   s   @r   Ú<module>r¦      s¹   øðöó$ Û 	Ý $Ý ã ß AÝ 6ð �7‰7�<‰<˜Ÿ™Ÿ™¨¯©¯©¸Ó(AÓBÀEÓJ€ð ˆu�}‰}Ø�—‘Øˆu�}‰}Øˆu�}‰}ð	(€ó ÷Tñ Tðn ‡�ôó ðõ*Gõ<÷ 4r   