+
    &j                        a  R
 t0 t ^ RIt^ RIt^ RIHt ^ RIHtHtHt ^ RI	H
t
 Rs] ^ k ]P                  ! ^4      R 4       t ! R R]4      tR tR	 tR# )    N)_len_torch_function_stack)	_pop_mode
_push_modeTorchFunctionModecontext_decoratorc                     0 \         P                  k\         P                  k\         P                  k\         P                  k\         P
                  k\         P                  k\         P                  k\         P                  k\         P                  k\         P                  P                  k\         P                  P                  k\         P                  k\         P                  k\         P                  k\         P                   k\         P"                  k\         P$                  k\         P&                  P(                  k\         P*                  k\         P,                  k\         P.                  k\         P0                  k\         P2                  k\         P4                  k\         P6                  k\         P8                  k\         P:                  k\         P<                  k\         P>                  k\         P@                  k\         PB                  k\         PD                  k\         PF                  k\         PH                  k\         PJ                  k\         PL                  k# N)'torchemptyempty_permutedempty_stridedempty_quantizedonesarangebartlett_windowblackman_windoweyefftfftfreqrfftfreqfullhamming_windowhann_windowkaiser_windowlinspacelogspacenestednested_tensorrandrandnrandintrandpermrangesparse_coo_tensorsparse_compressed_tensorsparse_csr_tensorsparse_csc_tensorsparse_bsr_tensorsparse_bsc_tensortril_indicestriu_indiceszerosasarraytensor	as_tensorscalar_tensor     k/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/utils/_device.py_device_constructorsr5      sF   11 	1 		1
 	1 	

1 	1 	1 	1 			1 			1 			1 	

1 	1 	1  	!1" 	#1$ 	%1& 	""'1, 	

-1. 	/10 	112 	314 	516 	718 	&&91: 	;1< 	=1> 	?1@ 	A1B 	C1D 	E1F 	G1H 	I1L 	M1N 	O1P 	Q1 1r3   c                   H   a  ] tR t^Dt o V 3R lR ltR tR tRR ltRtV t	R# )	DeviceContextc                   < V ^8  d   QhRR/# )   returnNr2   )format__classdict__s   "r4   __annotate__DeviceContext.__annotate__E   s     4 4$ 4r3   c                J    \         P                  ! V4      V n        R V n        R # r
   )r   device	prev_mode)selfr@   s   &&r4   __init__DeviceContext.__init__E   s    ll6*/3r3   c                   \         V n        V P                  s \        \	        4       4       Uu. uF  p\        4       NK  	  pp\        V 4       \        V4       F,  p\        V\        4      '       d	   W0n
        K!  \        V4       K.  	  R # u upi r
   )CURRENT_DEVICE
old_devicer@   r$   r   r   r   reversed
isinstancer7   rA   )rB   _	cur_stackmodes   &   r4   	__enter__DeviceContext.__enter__I   sl    (
 +00I0K*LM*LQY[*L	M4Y'D$..!%4 	 (	 Ns   B
c                   V P                   s. p\        \        4       ^,
          4       F?  p\	        4       p\        V\        4      '       d   \        R4      hVP                  V4       KA  	  \        4       ^ 8  d,   \	        4       p\        V\        4      '       g   \        R4      hV P                  e   \        V P                  4       \        V4       F  p\        V4       K  	  R# )   z@Found nested DeviceContext on the mode stack where none expectedz8Expected a DeviceContext at the bottom of the mode stackN)rG   rF   r$   r   r   rI   r7   AssertionErrorappendrA   r   rH   )rB   exc_typeexc_valexc_tbrK   rJ   rL   s   &&&&   r4   __exit__DeviceContext.__exit__[   s    	 02Q67A;D$..$V  T" 8 %&*;DdM22$N  >>%t~~&Y'Dt (r3   Nc                    T;'       g    / pV\        4       9   d#   VP                  R 4      f   V P                  VR &   V! V/ VB # r@   )r5   getr@   )rB   functypesargskwargss   &&&&&r4   __torch_function__ DeviceContext.__torch_function__v   sE    2'))fjj.B.J#{{F8T$V$$r3   )r@   rG   rA   )r2   N)
__name__
__module____qualname____firstlineno__rC   rM   rV   r_   __static_attributes____classdictcell__)r<   s   @r4   r7   r7   D   s#     4 4!$6% %r3   r7   c                 $   a  \        V 3R  lV4      # )c                     < S # r
   r2   rY   s   r4   <lambda>"device_decorator.<locals>.<lambda>   s    Vr3   r   )r@   r[   s   f&r4   device_decoratorrk   ~   s    ^T22r3   c                   a  V 3R l# )z
Set the default device inside of the wrapped function by decorating it with this function.

If you would like to use this as a context manager, use device as a
context manager directly, e.g., ``with torch.device(device)``.
c                 D   < \        \        P                  ! S4      V 4      # r
   )rk   r   r@   )r[   r@   s   &r4   ri   set_device.<locals>.<lambda>   s    (f)=tDr3   r2   rY   s   fr4   
set_devicero      s     EDr3   c                b    V ^8  d   Qh/ ^ \         9   d   \        P                  R,          ;R&   # )r9   NrF   )__conditional_annotations__r   r@   )r;   s   "r4   r=   r=      s#       + *t# * r3   )rq   	functoolsr   torch._Cr   torch.overridesr   r   r   torch.utils._contextlibr   rF   	lru_cacher5   r7   rk   ro   r=   )rq   s   @r4   <module>rw      s^       . D D 5 '+ * Q2 2l6%% 6%t3Er3   