+
    AåûjÀ  ã                   óÜ  € ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^RIH	t	H
t
HtHtHtHtHt ]R R l4       t]! 4       t]'       d   ]P$                  ! ]4       ]P&                  ! 4       ;_uu_ 4        ]P(                  ! RR]R	7       ]P,                  ! 4        RRR4       ]R
 R l4       tR R ltR R ltR R lt]! 4        ] P6                  R 4       tR#   + '       g   i     LH; i)é    N)Úcache)Úcast)Úcutedsl_utilsÚdsl_registryÚflydsl_utilsÚhelion_utilsÚopsÚregistryÚtriton_utilsc                óF   € V ^8„  d   QhR\         P                  R,          /# ©é   ÚreturnN)r
   ÚUserOrderingFn)Úformats   "ÚRC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\_native\__init__.pyÚ__annotate__r      s   € ÷ !ñ !œh×5Ñ5¸Õ<ñ !ó    c                 ód  € \         P                  ! R4      p V '       g   R#  ^ RIpV P                  R^4      w  r#VP	                  V4      p\        WC4      p\        V4      '       g   \        V  R24      h\        \        P                  V4      #   \         d   p\        RT  R24      ThRp?ii ; i)aK  
Get a user-supplied graph-ordering function if specified.

Pass in a `package.submodule.fn` string to the env variable
`TORCH_PYTHON_NATIVE_USER_GRAPH_ORDER_FN` that implements the
calling API described in `torch/_native/README.md`. This function
must be part of an importable path.

Return either the imported function or `None`
Ú'TORCH_PYTHON_NATIVE_USER_GRAPH_ORDER_FNNÚ.z& does not describe a callable functionzCould not resolve z' into an importable & callable function)ÚosÚgetenvÚ	importlibÚrsplitÚimport_moduleÚgetattrÚcallableÚ	TypeErrorr   r
   r   Ú	ExceptionÚ
ValueError)Úenv_varr   Úmodule_nameÚfn_nameÚmoduleÚfnÚes          r   Úget_user_ordering_fnr(      s®   € ô �iŠiÐAÓB€GçÙðÛð  'Ÿ~™~¨c°1Ó5Ñˆà×(Ñ(¨Ó5ˆÜ�VÓ%ˆä˜�|Š|Ü˜w˜iÐ'MÐNÓOÐOô ”H×+Ñ+¨RÓ0Ð0øÜô ÜØ   	Ð)PÐQó
àð	ûðús   ¢A,B ÂB/ÂB*Â*B/ÚignorezNWarning only once for all operators,  other operators may also be overridden\.)ÚmessageÚcategoryc                ó$   € V ^8„  d   QhR\         /# ©r   r   ©Úbool)r   s   "r   r   r   J   s   € ÷ ñ œdñ r   c                 ó   €  \         ;QJ d8    R \        P                  P                  4        4       F  '       g   K   R# 	  R# ! R \        P                  P                  4        4       4      #   \         d     R# i ; i)aE  True iff this build ships AOT kernels for its declared ops.

Answers what the build contains, not whether the kernels may run: a build made
without stage 2 has none, and every op falls back to its ordinary aten
implementation. Says nothing about set_aot_enabled(), which can mask kernels
that are present. Touches no device.
c              3   óX   "  € T F   pVP                   P                  R 4      x € K"  	  R# 5i)z_native_aot::N)ÚnameÚ
startswith)Ú.0Úschemas   & r   Ú	<genexpr>Ú'_native_aot_embedded.<locals>.<genexpr>S   s)   é € ð 
á9�ð �K‰K×"Ñ" ?×3Ð3Û9ùs   ‚(*TF)ÚanyÚtorchÚ_CÚ_jit_get_all_schemasr    © r   r   Ú_native_aot_embeddedr=   I   sp   € ðß‹sñ 
äŸ(™(×7Ñ7Ô9ó
�sŒsð 	
Šsð 	
ˆsñ 
äŸ(™(×7Ñ7Ô9ó
ó 
ð 	
øô ô Úðús'   ‚
A. �-A. ½A. Á A. Á)A. Á.A=Á<A=c                ó(   € V ^8„  d   QhR\         RR/# )r   Úenabledr   Nr.   )r   s   "r   r   r   [   s   € ÷ 	.ñ 	.œTð 	. dñ 	.r   c                óD   € \         P                  P                  V 4       R# )a«  Turn the embedded AOT kernels off (or back on) for this process.

With them off every op computes the same answers through its ordinary aten
implementation, so this is the switch to use when comparing against stock
PyTorch. Takes effect immediately, on calls already in flight.

Does NOT reach ops whose kernels ARE the implementation rather than a faster
route to the same answer; use _unconditional_masked() for one of those.N)r9   r:   Ú_set_native_aot_enabled)r?   s   &r   Úset_aot_enabledrB   [   s   € ô 
‡H�H×$Ñ$ WÖ-r   c                ó$   € V ^8„  d   QhR\         /# r-   r.   )r   s   "r   r   r   g   s   € ÷ .ñ .”Tñ .r   c                  ó>   € \         P                  P                  4       # )N)r9   r:   Ú_get_native_aot_enabledr<   r   r   Úaot_enabledrF   g   s   € Ü�8‰8×+Ñ+Ó-Ð-r   c                ó   € V ^8„  d   QhRR/# r   r<   )r   s   "r   r   r   k   s   € ÷ ñ ˜Dñ r   c                 óz   € \         P                  ! R4      R8X  d    \        4       '       d   \        R4       R# R# R# )a-  Honour TORCH_DISABLE_NATIVE_AOT=1 at import, once.

Separate from _native_aot_embedded(), which is cached and answers a question about
the build; this reads configuration and changes state. Gated on that answer so the
switch keeps its default on a build that ships no kernels, where it means nothing.
ÚTORCH_DISABLE_NATIVE_AOTÚ1FN)r   r   r=   rB   r<   r   r   Ú_apply_env_opt_outrK   k   s0   € ô 
‡y‚yÐ+Ó,°Ô3Ô8L×8NÒ8NÜ˜Öñ 9OÑ3r   c               #  ó^   "  € ^ RI Hp  V ! R4      p Rx € V ! V4       R#   T ! T4       i ; i5i)aû  PRIVATE, for reference computations only: also mask the overrides and AOT
kernels that are exempt from the user-facing switches (declaration UNCONDITIONAL
or register_op_override(unconditional_override=True)).

Those two mechanisms otherwise have no off state, leaving a numerics test no way
to obtain stock aten values. Not a user knob: masking an unconditional override
changes what the op computes. Combine with python_native.<dsl>.disabled(), which
masks everything else; this only lifts the exemptions.)Ú_set_mask_unconditionalTN)Útorch._native.registryrM   )rM   Úpreviouss     r   Ú_unconditional_maskedrP   y   s/   é € õ ?ñ
 ' tÓ,€Hð*Ûá Ö)øÑ Õ)üs   ‚-’  –
- 
*ª-)Ú
contextlibr   ÚwarningsÚ	functoolsr   Útypingr   r9   Ú r   r   r   r   r	   r
   r   r(   Úuser_order_fnÚ!reorder_graphs_from_user_functionÚcatch_warningsÚfilterwarningsÚUserWarningÚ_register_all_overridesr=   rB   rF   rK   ÚcontextmanagerrP   r<   r   r   Ú<module>r]      sà   ðÛ Û 	Û Ý Ý ã ÷÷ ñ ð ô!ó ð!ñH %Ó&€ßØ×.Ò.¨}Ô=ð ×Ò×ÕØ×ÒØØaØõð
 ×$Ò$Ô&÷ ð ôó ðõ"	.õ.õñ Ô ð ×Ññ*ó ò*÷u ×ús   Á4'CÃC+	