+
    [åûj›v  ã                  ó¸  a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIHtH	t	H
t
Ht ^ RIHtHt ]P                  ! ]4      t]
'       d   ^ RIHtHtHt ^ RIt^ RIHt . R+OtRtRtRsR]R&   ]P<                  ! 4       tR R lt  ! R R]4      t!R R lt" ! R R]!4      t# ! R R	4      t$ ! R R
4      t% ! R R4      t& ! R R4      t']!],          ](,          R,          t)R]R&   ])]$,          t*R]R&   ]*]%,          ]&,          ]',          t+R]R&   ]+],]+,          ,          ]-].]+3,          ,          t/R]R &    ! R! R4      t0 ! R" R4      t1R#t2R$ R% lt3R&t4R' R( lt5R) R* lt6R# ),zxSpec types for controlling what is dynamic in compiled/exported code.
Currently only supports unbacked dynamic shapes.

)ÚannotationsN)ÚAnyÚcastÚTYPE_CHECKINGÚ	TypeAlias)ÚSymBoolÚSymInt)ÚCallableÚIteratorÚSequence©ÚShapeEnvÚShapeVarÚIntVarÚ
TensorSpecÚ
ObjectSpecÚDictSpecÚSeqSpecÚ
ParamsSpecÚ
ShapesSpecÚLeafSpecÚLeafIntSpecÚIntermediateSpecz  zShapeEnv | NoneÚ_SPEC_SHAPE_ENVc               ó   € V ^8„  d   QhRR/# )é   Úreturnr   © )Úformats   "Ú^C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\fx\experimental\dynamic_spec.pyÚ__annotate__r    G   s   € ÷ >ñ >˜Xñ >ó    c                 óä   € \         e   \         # \        ;_uu_ 4        \         e   \         uuRRR4       # ^ RIHp   ! R RV 4      pV! 4       s \         uuRRR4       #   + '       g   i     R# ; i)z7Lazily build the singleton spec ShapeEnv (thread-safe).Nr   c                  ód   a € ] tR t^Qt$ Rt]! 0 R	m4      tR]R&   R V 3R lltR V 3R llt	Rt
V ;t# )
Ú*_get_spec_shape_env.<locals>._SpecShapeEnvu^  Special ShapeEnv used only at spec-definition time.

Attribute access is blocked by default via ``__getattribute__``;
only private (``_``-prefix) names and the explicit allowlist in
``_ALLOWED_PUBLIC`` pass through. SymInt arithmetic paths read
a handful of public fields transparently (via the
``@record_shapeenv_event`` decorator and FX-cache machinery),
so those are allowlisted. Everything else â€” evaluation, guard
recording, deferred asserts, etc. â€” is blocked.

During ``ShapeEnv.__init__`` itself, access is unrestricted
because the base class touches its own public fields while
bootstrapping.
zfrozenset[str]Ú_ALLOWED_PUBLICc               ó   € V ^8„  d   QhRR/# )r   r   ÚNoner   )r   s   "r   r    Ú7_get_spec_shape_env.<locals>._SpecShapeEnv.__annotate__q   s   € ÷ =ñ = $ñ =r!   c                	ó€   <€ \         P                  V R R4       \        SV `  4        \         P                  V R R4       R# )Ú
_init_doneFTN)ÚobjectÚ__setattr__ÚsuperÚ__init__)ÚselfÚ	__class__s   &€r   r.   Ú3_get_spec_shape_env.<locals>._SpecShapeEnv.__init__q   s2   ø€ ä×"Ñ" 4¨°uÔ=Ü‘Ñ Ô"Ü×"Ñ" 4¨°tÖ<r!   c               ó    € V ^8„  d   QhRRRR/# )r   ÚnameÚstrr   r   r   )r   s   "r   r    r(   w   s   € ÷ ñ ¨Sð °Sñ r!   c                	ó  <€ VP                  R 4      '       d   \        SV `	  V4      # \        SV `	  R4      '       g   \        SV `	  V4      # V\        V 4      P                  9   d   \        SV `	  V4      # \        RV R24      h)Ú_r*   z_SpecShapeEnv: 'zd' is not allowed at spec-definition time. Use IntVar / ShapeVar only inside TensorSpec / ShapesSpec.)Ú
startswithr-   Ú__getattribute__Útyper%   Ú	TypeError)r/   r3   r0   s   &&€r   r8   Ú;_get_spec_shape_env.<locals>._SpecShapeEnv.__getattribute__w   s‚   ø€ Ø—?‘? 3×'Ò'Ü ™7Ñ3°DÓ9Ð9Ü‘wÑ/°×=Ò=Ü ™7Ñ3°DÓ9Ð9Øœ4 ›:×5Ñ5Ô5Ü ™7Ñ3°DÓ9Ð9ÜØ& t fð -6ð 7óð r!   r   >   Úbound_sympyÚis_recordingÚvar_to_rangeÚfx_node_cacheÚshould_record_events)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	frozensetr%   Ú__annotations__r.   r8   Ú__static_attributes__Ú__classcell__©r0   s   @r   Ú_SpecShapeEnvr$   Q   s4   ø‡ ññ" /8ò
ó/ˆO˜^ó ÷=ð =÷ö r!   rK   )r   Ú_SPEC_SHAPE_ENV_LOCKÚ%torch.fx.experimental.symbolic_shapesr   )r   rK   s     r   Ú_get_spec_shape_envrN   G   sV   € ô Ò"ÜÐß	Ö	ÜÒ&Ü"÷ 
Ò	õ 	Cô1	˜Hô 1	ñf (›/ˆÜ÷s 
×	×	Ó	ús   �A¶AÁA/	c                  óŒ   a € ] tR t^ˆtRt]P                  ! 4       tRRRRRRR/R V 3R lllltR R	 lt	R
 R lt
R R ltRtV ;t# )r   a\  Indicates that a scalar integer argument is dynamic (no implicit range).

Unbacked dynamic shapes will represent the underlying value in the
compiled graph.

IntVar is a ``SymInt`` subclass backed by ``_SpecShapeEnv``,
so arithmetic and comparisons compose naturally::

    A = IntVar("a")
    B = IntVar("b")
    A + 1  # SymInt expr=a#0 + 1
    A * B + 1  # SymInt expr=a#0*b#1 + 1
    A > 0  # SymBool

Such derived ``SymInt`` values may be used directly as leaf specs in
``TensorSpec`` / ``ParamsSpec``

Repr always includes a per-instance uid so two IntVars with the same name
(or two anonymous ones) are distinguishable in logs::

    IntVar()           -> "IntVar(anon#0)"
    IntVar("offset")   -> "IntVar(offset#1)"

Example::

    IntVar("num_heads")
    IntVar("offset", min=-100, max=100)
    IntVar("size", min=1, max=2048, optimization_hint=512)
NÚminÚmaxÚoptimization_hintc          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r   r3   ú
str | NonerP   ú
int | NonerQ   rR   r   r'   r   )r   s   "r   r    ÚIntVar.__annotate__©   s<   € ÷ !
ñ !
àð!
ð ð	!
ð
 ð!
ð &ð!
ð 
ñ!
r!   c               	óÐ  <€ ^ RI p^ RIHpHp ^ RIHp ^ RIHp	 Ve   TMRV n        \        \        P                  4      V n        W n        W0n        W@n        VP!                  V P                   RV P                   24      V n        \%        4       p
V! V P"                  V
\&        VR7      p\(        SV `U  V4       T	! Ve   TMV) Ve   TMT4      V
P,                  V P"                  &   R# )é    N)Ú_NO_HINTÚSymNode)Úint_oo)ÚValueRangesÚanonÚ#)Ú	shape_envÚpytypeÚhint)ÚsympyÚtorch.fx.experimental.sym_noderY   rZ   Útorch.utils._sympy.numbersr[   Útorch.utils._sympy.value_rangesr\   r3   Únextr   Ú_uid_counterÚ_uidrP   rQ   rR   ÚSymbolÚ	sympy_symrN   Úintr-   r.   r>   )r/   r3   rP   rQ   rR   rb   rY   rZ   r[   r\   ÚenvÚnoder0   s   &&$$$       €r   r.   ÚIntVar.__init__©   sÄ   ø€ ó 	çDÝ5Ý?à Ò,‘D°&ˆŒ	Üœ×,Ñ,Ó-ˆŒ	ØŒØŒØ!2ÔØŸ™¨¯©¨°1°T·Y±Y°KÐ&@ÓAˆŒÜ!Ó#ˆÙØ�N‰NØÜØô	
ˆô 	‰Ñ˜Ôñ ,7Ø’?‰C¨¨Ø’?‰C¨ó,
ˆ×Ñ˜Ÿ™Ó(r!   c               ó   € V ^8„  d   QhRR/# ©r   r   r4   r   )r   s   "r   r    rV   Ì   s   € ÷ 
<ñ 
<˜#ñ 
<r!   c                	ó–  € V P                    R V P                   2.pV P                  e   VP                  RV P                   24       V P                  e   VP                  RV P                   24       V P
                  e   VP                  RV P
                   24       \        V 4      P                   RRP                  V4       R2# )r^   zmin=zmax=zoptimization_hint=Ú(z, Ú))	r3   rh   rP   ÚappendrQ   rR   r9   rA   Újoin)r/   Úpartss   & r   Ú__repr__ÚIntVar.__repr__Ì   s°   € ð —I‘I�;˜a §	¡	˜{Ð+Ð,ˆØ�8‰8ÒØ�L‰L˜4 §¡˜zÐ*Ô+Ø�8‰8ÒØ�L‰L˜4 §¡˜zÐ*Ô+Ø×!Ñ!Ò-Ø�L‰LÐ-¨d×.DÑ.DÐ-EÐFÔGÜ�t“*×%Ñ%Ð& a¨¯	©	°%Ó(8Ð'9¸Ð;Ð;r!   c               ó   € V ^8„  d   QhRR/# ©r   r   rk   r   )r   s   "r   r    rV   Ú   s   € ÷ ñ ˜#ñ r!   c                	ó   € \        V 4      # ©N)Úid©r/   s   &r   Ú__hash__ÚIntVar.__hash__Ú   s   € Ü�$‹xˆr!   c               ó   € V ^8„  d   QhRR/# ©r   r   zdict[str, Any]r   )r   s   "r   r    rV   Ý   ó   € ÷ 
ñ 
˜^ñ 
r!   c           
     	ó�   € R \        V 4      P                  RV P                  RV P                  RV P                  RV P
                  /# )r9   r3   rP   rQ   rR   )r9   rA   r3   rP   rQ   rR   r~   s   &r   Úto_jsonableÚIntVar.to_jsonableÝ   sA   € à”D˜“J×'Ñ'Ø�D—I‘IØ�4—8‘8Ø�4—8‘8Ø ×!7Ñ!7ð
ð 	
r!   )rh   rQ   rP   r3   rR   rj   r|   )rA   rB   rC   rD   rE   Ú	itertoolsÚcountrg   r.   rw   r   r…   rH   rI   rJ   s   @r   r   r   ˆ   sS   ø† ñð< —?’?Ó$€Lñ!
ð ð	!
ð
 ð!
ð )-÷!
ó !
õF
<õ÷
ó 
r!   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úvr   Úwherer4   r   r'   r   )r   s   "r   r    r    ç   s!   € ÷ 
ñ 
˜#ð 
¨ð 
°ñ 
r!   c               óÜ   € \        V \        4      '       d   RpM\        V \        4      '       d   RpMR# V P                  P                  \        4       Jd   \        V RV RV : R24      hR# )zPIf ``v`` is a SymInt or SymBool, validate it originates from the
spec ShapeEnv.
r   r   Nú: z= spec values must originate from spec IntVar / ShapeVar; got z  backed by a different ShapeEnv.)Ú
isinstancer   r   rm   r_   rN   r:   )rŠ   r‹   Úkinds   &$ r   Ú_validate_spec_symr�   ç   sq   € ô �!”V×ÒØ‰Ü	�A”w×	Ò	Ø‰áØ‡v�v×ÑÔ2Ó4Ó4ÜØˆg�R˜�vð Ø™EÐ!AðCó
ð 	
ñ 5r!   c                  óF   a € ] tR t^øtRtR	R^ RRRR/R V 3R lllltRtV ;t# )
r   zÝIndicates that a dimension size is dynamic and is >= 0.

Subclass of `IntVar` with ``min=0`` by default.

Example::

    ShapeVar("batch")
    ShapeVar("batch", max=64)
    ShapeVar("batch", max=64, optimization_hint=32)
NrP   rQ   rR   c          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r   r3   rT   rP   rk   rQ   rU   rR   r   r'   r   )r   s   "r   r    ÚShapeVar.__annotate__  sC   € ÷ Vñ VàðVð ð	Vð
 ðVð &ðVð 
ñVr!   c               	óV   <€ V^ 8  d   \        RV R24      h\        SV `	  WW4R7       R# )rX   zBShapeVar requires min >= 0 (a shape dim is non-negative); got min=z+. Use IntVar(...) for unrestricted scalars.)rP   rQ   rR   N)Ú
ValueErrorr-   r.   )r/   r3   rP   rQ   rR   r0   s   &&$$$€r   r.   ÚShapeVar.__init__  s@   ø€ ð �Œ7ÜðØ˜%ÐJðLóð ô 	‰Ñ˜¨CÐÖUr!   r   r|   )rA   rB   rC   rD   rE   r.   rH   rI   rJ   s   @r   r   r   ø   s;   ø† ñ	ñVð ð	Vð
 ðVð )-÷V÷ Vñ Vr!   c                  ób   € ] tR tRtRtR R ltR R ltR R ltR	 R
 ltR R lt	R R lt
RtR# )r   i  ab  Per-dimension shape specification for a tensor.

A list-like container of ``LeafIntSpec`` with length
equal to the tensor's dim.

Example::

    B = ShapeVar("batch")
    TensorSpec([B, STATIC])  # rank 2, dim 0 dynamic
    TensorSpec([B, 10])  # rank 2, dim 0 dynamic, dim 1 static=10
    TensorSpec([B * 2 + 1, STATIC])  # rank 2, dim 0 derived from B
c               ó    € V ^8„  d   QhRRRR/# )r   ÚdimszSequence[LeafIntSpec]r   r'   r   )r   s   "r   r    ÚTensorSpec.__annotate__"  s   € ÷ 4ñ 4Ð2ð 4°tñ 4r!   c           	     	óþ   € \        V4       F]  w  r#VeE   \        V\        \        34      '       g)   \	        RV R\        V4      P                   RV: 24      h\        VRV 2R7       K_  	  \        V4      V n	        R # )NzTensorSpec dim z: expected LeafIntSpec, got r�   ©r‹   )
Ú	enumeraterŽ   rk   r   r:   r9   rA   r�   ÚlistÚ_specs)r/   r™   ÚiÚds   &&  r   r.   ÚTensorSpec.__init__"  sy   € Ü˜d–O‰DˆAØŠ}¤Z°´C¼°=×%AÒ%AÜØ% a SÐ(DÜ˜A“w×'Ñ'Ð(¨¨1©%ð1óð ô ˜q¨/¸!¸Ð(=×>ñ $ô *.¨d«ˆŽr!   c               ó    € V ^8„  d   QhRRRR/# )r   Úindexrk   r   r   r   )r   s   "r   r    rš   ,  s   € ÷ "ñ " ð "¨ñ "r!   c                	ó(   € V P                   V,          # r|   ©rŸ   )r/   r¤   s   &&r   Ú__getitem__ÚTensorSpec.__getitem__,  s   € Ø�{‰{˜5Õ!Ð!r!   c               ó   € V ^8„  d   QhRR/# rz   r   )r   s   "r   r    rš   /  s   € ÷  ñ  ˜ñ  r!   c                	ó,   € \        V P                  4      # r|   )ÚlenrŸ   r~   s   &r   Ú__len__ÚTensorSpec.__len__/  s   € Ü�4—;‘;ÓÐr!   c               ó   € V ^8„  d   QhRR/# )r   r   zIterator[LeafIntSpec]r   )r   s   "r   r    rš   2  s   € ÷ !ñ !Ð/ñ !r!   c                	ó,   € \        V P                  4      # r|   )ÚiterrŸ   r~   s   &r   Ú__iter__ÚTensorSpec.__iter__2  s   € Ü�D—K‘KÓ Ð r!   c               ó   € V ^8„  d   QhRR/# rp   r   )r   s   "r   r    rš   5  s   € ÷  ñ  ˜#ñ  r!   c                	ó    € R .p\        V P                  4       F"  w  r#VP                  \         V RV: 24       K$  	  RP	                  V4      # )zTensor:r�   Ú
)r�   rŸ   rt   Ú_INDENTru   )r/   Úlinesr    Úspecs   &   r   rw   ÚTensorSpec.__repr__5  sH   € Ø�ˆÜ  §¡Ö-‰GˆAØ�L‰LœG˜9 Q C r¨$©Ð2Ö3ñ .à�y‰y˜ÓÐr!   c               ó   € V ^8„  d   QhRR/# r‚   r   )r   s   "r   r    rš   ;  rƒ   r!   c           
     	ó�   € R RRV P                    Uu. uF'  p\        VR4      '       d   VP                  4       MTNK)  	  up/# u upi )r9   r   r™   r…   )rŸ   Úhasattrr…   ©r/   r¸   s   & r   r…   ÚTensorSpec.to_jsonable;  sR   € à�LØà ŸKšKóá'�Dô '.¨d°M×&BÒ&B�× Ñ Ô"ÈÒLÙ'ñð
ð 	
ùòó   ’-A
r¦   N)rA   rB   rC   rD   rE   r.   r§   r¬   r±   rw   r…   rH   r   r!   r   r   r     s*   † ñõ4õ"õ õ!õ ÷
ñ 
r!   c                  ór   € ] tR tRtRtRR R lltR R ltR R	 ltR
 R ltR R lt	R R lt
R R ltRtR# )r   iE  at  Spec for any Python object's attributes.

Constructor::

    ObjectSpec({name: IntermediateSpec, ...})

Values may be leaves (``TensorSpec`` / ``IntVar`` / ``int`` /
``None``) or another ``ObjectSpec`` for recursion.

Example::

    ObjectSpec({"weight": TensorSpec([ShapeVar("h"), STATIC])})
    ObjectSpec({"inner": ObjectSpec({"weight": TensorSpec([ShapeVar("h")])})})
Nc               ó    € V ^8„  d   QhRRRR/# )r   Úfieldsz"dict[str, IntermediateSpec] | Noner   r'   r   )r   s   "r   r    ÚObjectSpec.__annotate__U  s   € ÷ Sñ SÐAð SÈTñ Sr!   c                	óH   € V'       d   \        V4      V n        R # / V n        R # r|   )ÚdictÚ_fields)r/   rÂ   s   &&r   r.   ÚObjectSpec.__init__U  s   € ßDJ´D¸³LˆŽÐPRˆŽr!   c               ó    € V ^8„  d   QhRRRR/# )r   r3   r+   r   Úboolr   )r   s   "r   r    rÃ   X  s   € ÷ $ñ $ ð $¨Dñ $r!   c                	ó   € WP                   9   # r|   ©rÆ   )r/   r3   s   &&r   Ú__contains__ÚObjectSpec.__contains__X  s   € Ø—|‘|Ñ#Ð#r!   c               ó   € V ^8„  d   QhRR/# )r   r   zIterator[str]r   )r   s   "r   r    rÃ   [  s   € ÷ "ñ "˜-ñ "r!   c                	ó,   € \        V P                  4      # r|   )r°   rÆ   r~   s   &r   r±   ÚObjectSpec.__iter__[  s   € Ü�D—L‘LÓ!Ð!r!   c               ó   € V ^8„  d   QhRR/# rz   r   )r   s   "r   r    rÃ   ^  s   € ÷ !ñ !˜ñ !r!   c                	ó,   € \        V P                  4      # r|   )r«   rÆ   r~   s   &r   r¬   ÚObjectSpec.__len__^  s   € Ü�4—<‘<Ó Ð r!   c               ó   € V ^8„  d   QhRR/# ©r   r   r   r   )r   s   "r   r    rÃ   a  s   € ÷ $ñ $�sñ $r!   c                	ó6   € V P                   P                  4       # r|   )rÆ   Úitemsr~   s   &r   r×   ÚObjectSpec.itemsa  s   € Ø�|‰|×!Ñ!Ó#Ð#r!   c               ó   € V ^8„  d   QhRR/# rp   r   )r   s   "r   r    rÃ   d  ó   € ÷ 
 ñ 
 ˜#ñ 
 r!   c                	ó|  € R .pV P                   P                  4        F‹  w  r#\        V4      pRV9   dX   VP                  \         RV R24       VP                  4        F&  pVP                  \        ^,          V,           4       K(  	  Kn  VP                  \         RV RV 24       K�  	  RP                  V4      # )zobject_spec:rµ   Ú.Ú:r�   )rÆ   r×   Úreprrt   r¶   Ú
splitlinesru   )r/   r·   r3   r¸   Ú	spec_reprÚlines   &     r   rw   ÚObjectSpec.__repr__d  s¥   € ØÐ ˆØŸ,™,×,Ñ,Ö.‰JˆDÜ˜T›
ˆIØ�yÔ Ø—‘¤˜y¨¨$¨¨qÐ1Ô2Ø%×0Ñ0Ö2�DØ—L‘L¤¨1¥¨tÕ!3Ö4ó 3ð —‘¤˜y¨¨$¨¨r°)°Ð=Ö>ñ /ð �y‰y˜ÓÐr!   c               ó   € V ^8„  d   QhRR/# r‚   r   )r   s   "r   r    rÃ   p  rƒ   r!   c                	ó¸   € R RRV P                   P                  4        UUu/ uF*  w  rT\        VR4      '       d   VP                  4       MTbK,  	  upp/# u uppi )r9   r   rÂ   r…   )rÆ   r×   r¼   r…   )r/   r3   r¸   s   &  r   r…   ÚObjectSpec.to_jsonablep  s_   € à�LØà"&§,¡,×"4Ñ"4Ô"6ôá"6‘J�Dð ¬G°D¸-×,HÒ,H�d×&Ñ&Ô(ÈdÒRÙ"6òð
ð 	
ùós   ¡0ArË   r|   ©rA   rB   rC   rD   rE   r.   rÌ   r±   r¬   r×   rw   r…   rH   r   r!   r   r   r   E  s0   † ñ÷Sõ$õ"õ!õ$õ
 ÷
ñ 
r!   c                  ór   € ] tR tRtRtRR R lltR R ltR R	 ltR
 R ltR R lt	R R lt
R R ltRtR# )r   iz  a8  Spec for a Python ``dict``-typed value.

Constructor::

    DictSpec({key: IntermediateSpec, ...})

Keys may be ``str`` or ``int``.

Example::

    DictSpec({"x": TensorSpec([ShapeVar("h"), STATIC])})
    DictSpec({"config": DictSpec({"batch": IntVar()})})
    DictSpec({0: TensorSpec([ShapeVar("h"), STATIC])})
Nc               ó    € V ^8„  d   QhRRRR/# )r   Úentriesz(dict[str | int, IntermediateSpec] | Noner   r'   r   )r   s   "r   r    ÚDictSpec.__annotate__Š  s   € ÷ 
ñ 
Ø?ð
à	ñ
r!   c                	óâ   € V'       d   \        V4      M/ V n        V P                   FD  p\        V\        \        34      '       d   K!  \        R \        V4      P                   RV: 24      h	  R# )z0DictSpec entries must have str or int keys, got r�   N)rÅ   Ú_entriesrŽ   r4   rk   r:   r9   rA   )r/   ré   Úks   && r   r.   ÚDictSpec.__init__Š  sb   € ÷ %ŒD�ŒM¨"ð 	Œð —”ˆAÜ˜a¤#¤s ×,Ô,ÜØFÄtÈAÃw×GWÑGWÐFXÐXZÐ[\ÑZ_Ð`óð ó r!   c               ó    € V ^8„  d   QhRRRR/# )r   Úkeyr+   r   rÉ   r   )r   s   "r   r    rê   –  s   € ÷ $ñ $ ð $¨4ñ $r!   c                	ó   € WP                   9   # r|   ©rì   )r/   rð   s   &&r   rÌ   ÚDictSpec.__contains__–  s   € Ø—m‘mÑ#Ð#r!   c               ó   € V ^8„  d   QhRR/# )r   r   zIterator[str | int]r   )r   s   "r   r    rê   ™  s   € ÷ #ñ #Ð-ñ #r!   c                	ó,   € \        V P                  4      # r|   )r°   rì   r~   s   &r   r±   ÚDictSpec.__iter__™  s   € Ü�D—M‘MÓ"Ð"r!   c               ó   € V ^8„  d   QhRR/# rz   r   )r   s   "r   r    rê   œ  ó   € ÷ "ñ "˜ñ "r!   c                	ó,   € \        V P                  4      # r|   ©r«   rì   r~   s   &r   r¬   ÚDictSpec.__len__œ  ó   € Ü�4—=‘=Ó!Ð!r!   c               ó   € V ^8„  d   QhRR/# rÕ   r   )r   s   "r   r    rê   Ÿ  s   € ÷ %ñ %�sñ %r!   c                	ó6   € V P                   P                  4       # r|   )rì   r×   r~   s   &r   r×   ÚDictSpec.itemsŸ  s   € Ø�}‰}×"Ñ"Ó$Ð$r!   c               ó   € V ^8„  d   QhRR/# rp   r   )r   s   "r   r    rê   ¢  rÚ   r!   c                	ó€  € R .pV P                   P                  4        F�  w  r#\        V4      pRV9   dY   VP                  \         RV: R24       VP                  4        F&  pVP                  \        ^,          V,           4       K(  	  Ko  VP                  \         RV: RV 24       K�  	  RP                  V4      # )z
dict_spec:rµ   Ú[ú]:ú]: )rì   r×   rÞ   rt   r¶   rß   ru   )r/   r·   rð   r¸   rà   rá   s   &     r   rw   ÚDictSpec.__repr__¢  s¤   € Ø�ˆØŸ™×,Ñ,Ö.‰IˆCÜ˜T›
ˆIØ�yÔ Ø—‘¤˜y¨¨#©°Ð3Ô4Ø%×0Ñ0Ö2�DØ—L‘L¤¨1¥¨tÕ!3Ö4ó 3ð —‘¤˜y¨¨#©°°I°;Ð?Ö@ñ /ð �y‰y˜ÓÐr!   c               ó   € V ^8„  d   QhRR/# r‚   r   )r   s   "r   r    rê   ®  rƒ   r!   c                	óÊ   € R RRV P                   P                  4        UUu/ uF3  w  r\        V4      \        VR4      '       d   VP	                  4       MTbK5  	  upp/# u uppi )r9   r   ré   r…   )rì   r×   r4   r¼   r…   )r/   rð   r¸   s   &  r   r…   ÚDictSpec.to_jsonable®  sd   € à�JØà!%§¡×!4Ñ!4Ô!6ôá!6‘I�Cô �C“´¸¸m×0LÒ0L˜$×*Ñ*Ô,ÐRVÒVÙ!6òð
ð 	
ùós   ¡9Arò   r|   ræ   r   r!   r   r   r   z  s/   † ñ÷
õ$õ#õ"õ%õ
 ÷
ñ 
r!   c                  óJ   € ] tR tRtRtR R ltR R ltR R ltR	 R
 ltRt	R# )r   i¸  a¡  Spec for a Python ``list``- or ``tuple``-typed value.

Per-position. The spec list may be shorter than the runtime sequence;
any positions beyond ``len(self)`` are treated as fully static (i.e.
equivalent to an unspecified slot).

Constructor::

    SeqSpec([IntermediateSpec, ...])

Example::

    SeqSpec([TensorSpec([ShapeVar("h"), 10]), 1])
    SeqSpec((TensorSpec([ShapeVar("a")]), TensorSpec([ShapeVar("b")])))
c               ó    € V ^8„  d   QhRRRR/# )r   ré   zSequence[IntermediateSpec]r   r'   r   )r   s   "r   r    ÚSeqSpec.__annotate__É  s   € ÷ >ñ >Ð :ð >¸tñ >r!   c                	ó&   € \        V4      V n        R # r|   )rž   rì   )r/   ré   s   &&r   r.   ÚSeqSpec.__init__É  s   € Ü04°W³ˆŽr!   c               ó   € V ^8„  d   QhRR/# rz   r   )r   s   "r   r    r  Ì  rø   r!   c                	ó,   € \        V P                  4      # r|   rú   r~   s   &r   r¬   ÚSeqSpec.__len__Ì  rü   r!   c               ó   € V ^8„  d   QhRR/# rp   r   )r   s   "r   r    r  Ï  rÚ   r!   c                	ór  € R .p\        V P                  4       F‹  w  r#\        V4      pRV9   dX   VP                  \         RV R24       VP                  4        F&  pVP                  \        ^,          V,           4       K(  	  Kn  VP                  \         RV RV 24       K�  	  RP                  V4      # )z	seq_spec:rµ   r  r  r  )r�   rì   rÞ   rt   r¶   rß   ru   )r/   r·   r    r¸   rà   rá   s   &     r   rw   ÚSeqSpec.__repr__Ï  s    € Ø�ˆÜ  §¡Ö/‰GˆAÜ˜T›
ˆIØ�yÔ Ø—‘¤˜y¨¨!¨¨BÐ/Ô0Ø%×0Ñ0Ö2�DØ—L‘L¤¨1¥¨tÕ!3Ö4ó 3ð —‘¤˜y¨¨!¨¨C°	¨{Ð;Ö<ñ 0ð �y‰y˜ÓÐr!   c               ó   € V ^8„  d   QhRR/# r‚   r   )r   s   "r   r    r  Û  rƒ   r!   c           
     	ó�   € R RRV P                    Uu. uF'  p\        VR4      '       d   VP                  4       MTNK)  	  up/# u upi )r9   r   ré   r…   )rì   r¼   r…   r½   s   & r   r…   ÚSeqSpec.to_jsonableÛ  sR   € à�IØà ŸMšMóá)�Dô '.¨d°M×&BÒ&B�× Ñ Ô"ÈÒLÙ)ñð
ð 	
ùòr¿   rò   N)
rA   rB   rC   rD   rE   r.   r¬   rw   r…   rH   r   r!   r   r   r   ¸  s    † ñõ >õ"õ
 ÷
ñ 
r!   r   ÚParamsSpecValuec                  óJ   € ] tR tRtRtRtRtRR R lltR R	 ltR
 R lt	Rt
R# )r   i   aÚ  Specification for the arguments of a compiled function.

Describes the dynamic shape behavior for named arguments, ``*args``,
and ``**kwargs`` of a ``torch.compile``-wrapped function. Takes a
single dict keyed by parameter name, with two reserved sentinel keys
for the variadic slots::

    def func(x, n, *args, **kwargs): ...


    ParamsSpec(
        {
            "x": TensorSpec([ShapeVar("batch"), None]),
            "n": IntVar("seq"),
            "*args": [TensorSpec([ShapeVar("a")]), None],
            "**kwargs": {
                "foo": TensorSpec([ShapeVar("b"), None]),
                "bar": TensorSpec([ShapeVar("c"), None]),
            },
        }
    )

Anything not expressed in ``ParamsSpec`` is STATIC.**
z*argsz**kwargsNc               ó    € V ^8„  d   QhRRRR/# )r   Úparamsz!dict[str, ParamsSpecValue] | Noner   r'   r   )r   s   "r   r    ÚParamsSpec.__annotate__  s"   € ÷ #Fñ #Fà1ð#Fð 
ñ#Fr!   c           
     	ó   € / V n         R V n        R V n        Vf   R # VP                  4        EF�  w  r#W P                  8X  d€   \        V\        4      '       g0   \        RV P                  : R\        V4      P                   24      h\        V4       F  w  rE\        VRV RV R2R7       K  	  \        V4      V n        K•  W P                  8X  d‡   \        V\        4      '       g0   \        RV P                  : R\        V4      P                   24      hVP                  4        F  w  re\        VRV RV: R2R7       K  	  \        V4      V n        EK+  VP                  R4      '       d-   \        R	V: R
V P                  : RV P                  : R24      h\        VRV: R2R7       \        \         V4      V P                   V&   EK   	  R # )NzParamsSpec z) value must be a list of leaf specs, got zParamsSpec 'z'[Ú]rœ   z) value must be a dict of leaf specs, got Ú*zUnknown sentinel key z in ParamsSpec; only z and z are reservedzParamsSpec[)Ú_named_argsÚ_varargsÚ_varkwr×   Ú_VARARGS_KEYrŽ   rž   r•   r9   rA   r�   r�   Ú
_VARKW_KEYrÅ   r7   r   r   )r/   r  rð   Úvaluer    rŠ   rí   s   &&     r   r.   ÚParamsSpec.__init__  s¯  € ð 9;ˆÔØ7;ˆŒØ:>ˆŒØŠ>ÙØ Ÿ,™,Ÿ.‰JˆCØ×'Ñ'Ô'Ü! %¬×.Ò.Ü$Ø% d×&7Ñ&7Ñ%:ð ;.Ü.2°5«k×.BÑ.BÐ-CðEóð ô & eÖ,‘D�AÜ& q°,¸s¸eÀ2ÀaÀSÈÐ0J×Kñ -ä $ U£�–ØŸ™Ô'Ü! %¬×.Ò.Ü$Ø% d§o¡oÑ%8ð 9.Ü.2°5«k×.BÑ.BÐ-CðEóð ð "ŸK™KžM‘D�AÜ& q°,¸s¸eÀ2ÀaÁUÈ!Ð0L×Mñ *ä" 5›k�—Ø—‘ ×$Ò$Ü Ø+¨C©7Ð2GØ×(Ñ(Ñ+¨5°·±Ñ0CÀ=ðRóð ô
 # 5°+¸c¹WÀAÐ0FÕGÜ(,Ô-=¸uÓ(E�× Ñ  Ô%ó5 )r!   c               ó   € V ^8„  d   QhRR/# rp   r   )r   s   "r   r    r  B  s   € ÷  ñ  ˜#ñ  r!   c                	óX  aa€ \         3R  R lloR V3R lloV P                  P                  4        UUu. uF  w  rS! W4      NK  	  pppV P                  eU   RP	                  V3R l\        V P                  4       4       4      pVP                  V P                   RS! V4       24       V P                  eZ   RP	                  V3R lV P                  P                  4        4       4      pVP                  V P                   RS! V4       24       RP	                  V4      # u uppi )c               ó$   € V ^8„  d   QhRRRRRR/# )r   Útextr4   Úprefixr   r   )r   s   "r   r    Ú)ParamsSpec.__repr__.<locals>.__annotate__C  s&   € ÷ 	Jñ 	J ð 	J¨Sð 	J¸sñ 	Jr!   c                óV   a€ R P                  V3R lV P                  4        4       4      # )rµ   c              3  ó6   <"  € T F  pSV,           x € K  	  R # 5ir|   r   )Ú.0rá   r*  s   & €r   Ú	<genexpr>Ú=ParamsSpec.__repr__.<locals>._indent_lines.<locals>.<genexpr>D  s   øé € ÐIÑ7H¨t˜V dŸ]š]Ó7Hùs   ƒ)ru   rß   )r)  r*  s   &fr   Ú_indent_linesÚ*ParamsSpec.__repr__.<locals>._indent_linesC  s   ø€ Ø—9‘9ÔI°t·±Ô7HÓIÓIÐIr!   c               ó$   € V ^8„  d   QhRRRRRR/# )r   rð   r4   r$  r   r   r   )r   s   "r   r    r+  F  s!   € ÷ 	&ñ 	&˜Sð 	&¨ð 	&°ñ 	&r!   c                óP   <€ \        V4      pR V9   d   V  RS! V4       2# V  RV 2# )rµ   ú:
r�   )rÞ   )rð   r$  Úv_reprr1  s   && €r   Ú_entry_reprÚ(ParamsSpec.__repr__.<locals>._entry_reprF  s;   ø€ Ü˜%“[ˆFØ�vŒ~Ø˜˜c¡-°Ó"7Ð!8Ð9Ð9Ø�U˜"˜V˜HÐ%Ð%r!   rµ   c              3  óL   <"  € T F  w  rS! \        V4      V4      x € K  	  R # 5ir|   )r4   )r.  r    rŠ   r7  s   &  €r   r/  Ú&ParamsSpec.__repr__.<locals>.<genexpr>N  s%   øé € ð Ù3K©4¨1‘œC ›F A×&Ð&Ó3Kùs   ƒ!$r5  c              3  ó8   <"  € T F  w  rS! W4      x € K  	  R # 5ir|   r   )r.  rí   rŠ   r7  s   &  €r   r/  r:  S  s   øé € ÐPÑ<O±D°A™k¨!×/Ð/Ó<Oùs   ƒ)
r¶   r  r×   r   ru   r�   rt   r"  r!  r#  )r/   rí   rŠ   r·   Úinnerr7  r1  s   &    @@r   rw   ÚParamsSpec.__repr__B  sú   ù€ Ü3:÷ 	J÷	&ð 	&ð 04×/?Ñ/?×/EÑ/EÔ/GÔHÑ/G¡t q‘˜QÖ"Ñ/GˆÑHØ�=‰=Ò$Ø—I‘Iô Ü3<¸T¿]¹]Ô3Kóó ˆEð �L‰L˜D×-Ñ-Ð.¨c±-ÀÓ2FÐ1GÐHÔIØ�;‰;Ò"Ø—I‘IÔP¸D¿K¹K×<MÑ<MÔ<OÓPÓPˆEØ�L‰L˜DŸO™OÐ,¨C±¸eÓ0DÐ/EÐFÔGØ�y‰y˜ÓÐùó Is   ¶D&c               ó   € V ^8„  d   QhRR/# r‚   r   )r   s   "r   r    r  W  s   € ÷ 
ñ 
˜^ñ 
r!   c           	     	óV  € V P                   P                  4        UUu/ uF*  w  rT\        VR 4      '       d   VP                  4       MTbK,  	  pppV P                  eK   V P                   Uu. uF'  p\        VR 4      '       d   VP                  4       MTNK)  	  upW0P
                  &   V P                  e^   V P                  P                  4        UUu/ uF*  w  rT\        VR 4      '       d   VP                  4       MTbK,  	  uppW0P                  &   RRRV/# u uppi u upi u uppi )r…   r9   r   r  )r  r×   r¼   r…   r   r"  r!  r#  )r/   r3   r$  r  rŠ   s   &    r   r…   ÚParamsSpec.to_jsonableW  s#  € ð  $×/Ñ/×5Ñ5Ô7ô"
á7‘�ð ¬°¸×)FÒ)F�%×#Ñ#Ô%ÈEÒQÙ7ð 	ñ "
ð �=‰=Ò$ð Ÿšó)á&�Aô $+¨1¨m×#<Ò#<�—‘”À!ÒCÙ&ñ)ˆF×$Ñ$Ñ%ð �;‰;Ò"ð $(§;¡;×#4Ñ#4Ô#6ô'á#6‘K�Dð ¬W°U¸M×-JÒ-J�e×'Ñ'Ô)ÐPUÒUÙ#6ò'ˆF—?‘?Ñ#ð
 �LØ�fð
ð 	
ùó"
ùò
)ùó
's   ž0DÁ--D Ã0D%)r  r   r!  r|   )rA   rB   rC   rD   rE   r"  r#  r.   rw   r…   rH   r   r!   r   r   r      s)   † ñð2 €LØ€J÷#FõJ ÷*
ñ 
r!   c                  ód   € ] tR tRtRtRRRRR/R R lllt]R R	 l4       tR
 R ltR R lt	Rt
R# )r   il  už  Top-level shape specification for a ``torch.compile`` call.

``params`` describes the arguments of the compiled callable â€” for a raw
function this is the function's parameters, for an ``nn.Module`` this
is the parameters of ``forward`` (excluding ``self``).

``assumptions`` is an optional list of ``SymBool`` expressions built
from spec ``IntVar`` / ``ShapeVar`` values. Each assumption is wired
into the shape env at compile time and asserted at runtime via the
deferred-runtime-assert mechanism::

    from torch.fx.experimental.dynamic_spec import (
        ParamsSpec as PARAMS,
        ShapesSpec,
        ShapeVar as VAR,
        TensorSpec as T,
    )

    batch = VAR("batch", min=2, max=128)
    ep = torch.export.export(
        mod,
        (torch.randn(8, 3), torch.randn(16, 3)),
        dynamic_shapes=ShapesSpec(
            params=PARAMS(
                {
                    "x": T([batch, 3]),
                    "y": T([batch * 2, 3]),  # derived expression
                }
            ),
            assumptions=[batch % 2 == 0],
        ),
        strict=True,
    )

``globals`` is reserved for future use and will raise
``NotImplementedError`` if set.
NÚglobalsÚassumptionsc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   r  z.ParamsSpec | dict[str, ParamsSpecValue] | NonerB  r   rC  zSequence[SymBool] | Noner   r'   r   )r   s   "r   r    ÚShapesSpec.__annotate__“  s2   € ÷ ",ñ ",à>ð",ð ð	",ð
 .ð",ð 
ñ",r!   c          	     	ó  € R V n         . V n        Ve   \        R4      h\        V\        4      '       d   \        V4      pM;Ve8   \        V\
        4      '       g"   \        R\        V4      P                   24      hWn         Ve�   \        V4       Fo  w  rE\        V\        4      '       g)   \        RV R\        V4      P                   RV: 24      h\        VRV R2R7       V P                  P                  V4       Kq  	  R # R # )Nz'ShapesSpec.globals is not supported yetz3shapes_spec must be ParamsSpec, dict, or None, got zShapesSpec.assumptions[z]: expected SymBool, got r�   r  rœ   )Ú_paramsÚ_assumptionsÚNotImplementedErrorrŽ   rÅ   r   r:   r9   rA   r�   r   r�   rt   )r/   r  rB  rC  r    Úas   &&$$  r   r.   ÚShapesSpec.__init__“  s  € ð +/ˆŒØ+-ˆÔàÒÜ%Ð&OÓPÐPô �fœd×#Ò#Ü Ó'‰FØÒ¬
°6¼:×(FÒ(FÜðÜ˜F“|×,Ñ,Ð-ð/óð ð ŒàÒ"Ü! +Ö.‘�Ü! !¤W×-Ò-Ü#Ø1°!°ð 5Ü# A›w×/Ñ/Ð0°°1±%ð9óð ô # 1Ð.EÀaÀSÈÐ,JÕKØ×!Ñ!×(Ñ(¨Ö+ó /ñ #r!   c               ó   € V ^8„  d   QhRR/# )r   r   zlist[SymBool]r   )r   s   "r   r    rE  ¸  s   € ÷ 'ñ '˜]ñ 'r!   c                	ó,   € \        V P                  4      # r|   )rž   rH  r~   s   &r   rC  ÚShapesSpec.assumptions·  s   € ä�D×%Ñ%Ó&Ð&r!   c               ó   € V ^8„  d   QhRR/# rp   r   )r   s   "r   r    rE  »  s   € ÷  ñ  ˜#ñ  r!   c                	óæ  € R .pV P                   eh   VP                  \         R24       \        V P                   4      pVP	                  4        F&  pVP                  \        ^,          V,           4       K(  	  V P
                  '       dX   VP                  \         R24       V P
                   F/  pVP                  \        ^,          \        V4      ,           4       K1  	  RP                  V4      # )zshapes_spec:zparams:zassumptions:rµ   )rG  rt   r¶   rÞ   rß   rH  ru   )r/   r·   Ú
param_reprrá   rJ  s   &    r   rw   ÚShapesSpec.__repr__»  s´   € ØÐ ˆØ�<‰<Ò#Ø�L‰LœG˜9 GÐ,Ô-Ü˜dŸl™lÓ+ˆJØ"×-Ñ-Ö/�Ø—‘œW q�[¨4Õ/Ö0ñ 0à××ÐØ�L‰LœG˜9 LÐ1Ô2Ø×&Ô&�Ø—‘œW q�[¬4°«7Õ2Ö3ñ 'à�y‰y˜ÓÐr!   c               ó   € V ^8„  d   QhRR/# r‚   r   )r   s   "r   r    rE  È  s   € ÷ 
ñ 
˜^ñ 
r!   c                	ó²   € R RRV P                   f   RMV P                   P                  4       RV P                   Uu. uF  p\        V4      NK  	  up/# u upi )r9   r   r  NrC  )rG  r…   rH  rÞ   )r/   rJ  s   & r   r…   ÚShapesSpec.to_jsonableÈ  sT   € à�LØ˜dŸl™lÒ2‘d¸¿¹×8PÑ8PÓ8RØ¨T×->Ò->Ó?Ñ->¨œD žGÑ->Ñ?ð
ð 	
ùò @s   ¼A)rH  rG  r|   )rA   rB   rC   rD   rE   r.   ÚpropertyrC  rw   r…   rH   r   r!   r   r   r   l  sJ   † ñ$ñL",ð ð	",ð
 15÷",ð ",ðH ô'ó ð'õ ÷
ñ 
r!   zÜ`prefer_deferred_runtime_asserts_over_guards=True` cannot be combined with `dynamic_shapes=ShapesSpec(...)`. ShapesSpec currently uses unbacked symbols only, which already emit runtime assertions; the flag has no effect.c               ó    € V ^8„  d   QhRRRR/# )r   Úxr   r   zShapesSpec | Noner   )r   s   "r   r    r    Û  s   € ÷ ñ Ø
ðàñr!   c                óÎ   € V f   R# \        V \        4      '       d   V # \        V \        \        34      '       d   \        V 4      # \	        R\        V 4      P                   24      h)a  Normalize a user-supplied dynamic-spec value to ``ShapesSpec | None``.

Accepts ``None``, an existing ``ShapesSpec``, a ``ParamsSpec``, or a plain
``dict`` (the same shape ``ParamsSpec`` accepts). The dict and
``ParamsSpec`` forms are auto-wrapped by ``ShapesSpec.__init__``.
Nz<dynamic spec expects a dict, ShapesSpec, or ParamsSpec, got )rŽ   r   rÅ   r   r:   r9   rA   )rX  s   &r   Ú_coerce_to_shapes_specrZ  Û  sa   € ð 	‚yÙÜ�!”Z× Ò ØˆÜ�!”dœJÐ'×(Ò(Ü˜!‹}ÐÜ
ðÜ�A‹w×ÑÐ ð	"óð r!   Ú_dynamic_specc               ó    € V ^8„  d   QhRRRR/# )r   r¸   r   r   r   )r   s   "r   r    r    õ  s   € ÷ :ñ :�sð :˜sñ :r!   c                ó|   a€ \        V 4      oSf#   \        R\        V 4      P                   R24      hR V3R llpV# )a¯  Attach a ``ShapesSpec`` to a function (or ``nn.Module.forward``).

When :func:`torch.compile`, :func:`torch.export.export`, or
:func:`torch.fx.experimental.proxy_tensor.make_fx` is invoked on a
function (or module) that carries this metadata, the attached
``ShapesSpec`` is used as the dynamic-shape spec **unless** the caller
also passes an explicit ``dynamic_shapes=`` kwarg, in which case the
two-source ambiguity is rejected with ``ValueError``.

``spec`` accepts the same types as the call-site
``dynamic_shapes=`` a ``dict``, a ``ParamsSpec``, or a ``ShapesSpec``.
To attach assumptions, build a ``ShapesSpec(params=..., assumptions=[...])``
and pass it.

Usage::

    # Simple per-param mapping (no assumptions):
    @dynamic_spec({"x": TensorSpec([ShapeVar("B"), STATIC])})
    def fn(x): ...


    # With assumptions: build a ShapesSpec.
    B = ShapeVar("B")


    @dynamic_spec(
        ShapesSpec(
            ParamsSpec({"x": TensorSpec([B, STATIC])}),
            assumptions=[B % 2 == 0],
        )
    )
    def fn(x): ...

Equivalent for an ``nn.Module``::

    class M(nn.Module):
        @dynamic_spec({"x": TensorSpec([ShapeVar("B"), STATIC])})
        def forward(self, x): ...
zFdynamic_spec(): `spec` must be a dict, ParamsSpec, or ShapesSpec, got rÜ   c               ó    € V ^8„  d   QhRRRR/# )r   Úfnr   r   r   )r   s   "r   r    Ú"dynamic_spec.<locals>.__annotate__$  s   € ÷ 	ñ 	�sð 	˜sñ 	r!   c           
     óœ   <€ \        V \        4      '       d$   \        R \        V R\	        V 4      4       R24      h\        V \        S4       V # )z*@dynamic_spec(...) is already attached to rC   zp. Stacking multiple @dynamic_spec decorators on the same function is not allowed; merge them into a single spec.)r¼   Ú_DYNAMIC_SPEC_ATTRr•   ÚgetattrrÞ   Úsetattr)r_  Úresolveds   &€r   Ú
_decoratorÚ dynamic_spec.<locals>._decorator$  sR   ø€ Ü�2Ô)×*Ò*ÜØ<Ü˜2˜~¬t°B«xÓ8Ð9ð ::ð:óð ô 	�Ô&¨Ô1Øˆ	r!   )rZ  r:   r9   rA   )r¸   rf  re  s   & @r   Údynamic_specrh  õ  sQ   ø€ ôP & dÓ+€HØÒÜðÜ# D›z×2Ñ2Ð3°1ð6ó
ð 	
÷
	ð 	ð Ðr!   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úfn_or_modulez$Callable[..., Any] | torch.nn.ModuleÚdynamic_shapes_kwargr   r   r   )r   s   "r   r    r    2  s&   € ÷ ñ Ø6ðàðð 	ñr!   c           
     ó  € T p^ RI p\        WP                  P                  4      '       d   V P                  p\        V\        R4      pVf   V# Ve   \        R4      h\        P                  R\        VR\        V4      4      V4       V# )a¬  Resolve the effective dynamic-shapes spec for a call site.

Reads ``@dynamic_spec(...)`` metadata from ``fn_or_module`` (for an
``nn.Module``, the metadata is read from its bound ``forward`` method).
Raises ``ValueError`` if both the decorator and an explicit
``dynamic_shapes_kwarg`` are present, since the precedence is ambiguous.
Returns ``dynamic_shapes_kwarg`` if the decorator is absent, else the
attached ``ShapesSpec``.
Nz|Both `@dynamic_spec(...)` is attached to the function/forward AND a `dynamic_shapes=` argument was passed. Provide only one.z&Using @dynamic_spec attached to %s: %srC   )Útorch.nnrŽ   ÚnnÚModuleÚforwardrc  rb  r•   ÚlogÚinforÞ   )rj  rk  r_  ÚtorchÚattacheds   &&   r   Ú_resolve_dynamic_shapesru  2  s‰   € ð 
€BÛä�,§¡§¡×0Ò0Ø×!Ñ!ˆÜ�rÔ-¨tÓ4€HØÒØ#Ð#ØÒ'ÜðMó
ð 	
ô ‡H�HØ0Ü��N¤D¨£HÓ-Øôð
 €Or!   )r   r   ÚSTATICr   r   r   r   r   r   r   r   r   rh  )7Ú__conditional_annotations__rE   Ú
__future__r   r‡   ÚloggingÚ	threadingÚtypingr   r   r   r   rs  r   r   Ú	getLoggerrA   rq  Úcollections.abcr	   r
   r   rm  rM   r   Ú__all__r¶   rv  r   rG   ÚLockrL   rN   r   r�   r   r   r   r   r   rk   r   r   r   rž   rÅ   r4   r  r   r   Ú,_SHAPES_SPEC_VS_DEFERRED_RUNTIME_ASSERTS_MSGrZ  rb  rh  ru  )rw  s   @r   Ú<module>r�     sv  øðôõ
 #ã Û Û ß 6Ó 6ç !ð ×Ò˜Ó!€÷ ß<Ñ<ãÝ>ò€ð$ €ð 
€ð $(€�Ó 'ð
 !—~’~Ó'Ð õ>ôB\
ˆVô \
õ~
ô"Vˆvô V÷8.
ñ .
÷b2
ñ 2
÷j;
ñ ;
÷|*
ñ *
ðp   &�¨3Õ.°Õ5€ˆYÓ 5à! JÕ.€ˆ)Ó .ð '¨Õ3°hÕ>ÀÕHÐ �)Ó Hð �tÐ,Õ-Õ-°°SÐ:JÐ5JÕ0KÕKð �ó ÷
i
ñ i
÷Xa
ñ a
ðP2ð -õð. %Ð õ:÷zr!   