+
    Ïåûj„  ã                   ó  € ^ RI Ht ^ RIt^ RIHt . ROt]! ]P                  R4      '       g    ]! R4      ]P                  P                  R&    ! R R]P                  P                  4      t
]R R l4       tR	 R
 ltR R ltR R ltR# )é    )ÚcontextmanagerN)Ú_dummy_typeÚStreamÚ_MPSStreamBasec                   ój   a a€ ] tR t^t oRtV3R lV 3R llt]V3R lV 3R ll4       tR tRt	Vt
V ;t# )r   zÓWrapper around an MPS stream.

An MPS stream is a linear sequence of execution that is independent from
other streams. Use the :meth:`stream` context manager to ensure operators
run on the corresponding stream.
c                ó   <€ V ^8„  d   QhRR/# )é   ÚreturnN© )ÚformatÚ__classdict__s   "€ÚMC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\mps\streams.pyÚ__annotate__ÚStream.__annotate__   s   ø€ ÷ ñ ˜Tñ ó    c                ó$   <€ \         SV `  4        R# )z4Wait for all the kernels in this stream to complete.N)ÚsuperÚsynchronize©ÚselfÚ	__class__s   &€r   r   ÚStream.synchronize   s   ø€ ä‰ÑÖr   c                ó    <€ V ^8„  d   QhRS[ /# ©r	   r
   )Úint)r   r   s   "€r   r   r       s   ø€ ÷ !ñ !™3ñ !r   c                ó   <€ \         SV `  # )N)r   Ú	stream_idr   s   &€r   r   ÚStream.stream_id   s   ø€ ä‰wÑ Ð r   c                ó"   € R V P                    R2# )z<torch.mps.Stream stream_id=Ú>©r   )r   s   &r   Ú__repr__ÚStream.__repr__#   s   € Ø-¨d¯n©nÐ-=¸QÐ?Ð?r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úpropertyr   r"   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r   s   @@r   r   r      s9   ù‡ € ñ÷ó ð ÷!ò !ó ð!÷@ò @r   c                ó2   € V ^8„  d   QhR\         R,          /# )r	   ÚstreamN©r   )r   s   "r   r   r   (   s   € ÷ .ñ .”6˜D•=ñ .r   c              #  ó6  "  € \         P                  P                  4       pV e    \         P                  P                  V 4        Rx € V e"   \         P                  P                  V4       R# R#   T e!   \         P                  P                  T4       i i ; i5i)z×Context manager that selects a given stream.

MPS operators called within this context will be enqueued on the selected
stream.

Args:
    stream (Stream): selected stream. This manager is a no-op if it's ``None``.
N)ÚtorchÚmpsÚcurrent_streamÚ
set_stream)r.   Úprev_streams   & r   r.   r.   '   ss   é € ô —)‘)×*Ñ*Ó,€KàÒÜ�	‰	×Ñ˜VÔ$ð.ÛàÒÜ�I‰I× Ñ  Ö-ñ øˆ6ÒÜ�I‰I× Ñ  Õ-ð üs   ‚ABÁA0 Á	'BÁ0&BÂBc                ó$   € V ^8„  d   QhR\         /# r   r/   )r   s   "r   r   r   =   s   € ÷ 3ñ 3œñ 3r   c                 ój   € \         P                  P                  4       p \        V P                  R7      # )z.Return the currently selected :class:`Stream`.r!   )r1   Ú_CÚ_mps_getCurrentStreamr   r   )Ústream_bases    r   r3   r3   =   s%   € ä—(‘(×0Ñ0Ó2€KÜ˜K×1Ñ1Ô2Ð2r   c                ó$   € V ^8„  d   QhR\         /# r   r/   )r   s   "r   r   r   C   s   € ÷ ñ œñ r   c                 ó   € \        ^ R7      # )z#Return the default :class:`Stream`.r!   r/   r   r   r   Údefault_streamr=   C   s   € ä˜AÔÐr   c                ó6   € V ^8„  d   QhR\         R,          RR/# )r	   r.   Nr
   r/   )r   s   "r   r   r   H   s   € ÷ 
$ñ 
$”v •}ð 
$¨ñ 
$r   c                óP   € V f   R# \         P                  P                  V 4       R# )zÚSet the current stream. Usage of this function is discouraged in favor
of the :meth:`stream` context manager.

Args:
    stream (Stream): selected stream. This function is a no-op if this
        argument is ``None``.
N)r1   r8   Ú_mps_setStream)r.   s   &r   r4   r4   H   s   € ð ‚~ÙÜ	‡H�H×Ñ˜FÖ#r   )r   r.   r3   r=   r4   )Ú
contextlibr   r1   Útorch._utilsr   Ú__all__Úhasattrr8   Ú__dict__r   r   r.   r3   r=   r4   r   r   r   Ú<module>rF      s   ðÝ %ã Ý $ò€ñ ˆu�x‰xÐ)×*Ò*Ù*5Ð6FÓ*G€E‡H�H×ÑÐ&Ñ'ô@ˆU�X‰X×$Ñ$ô @ð( ô.ó ð.õ*3õ÷

$r   