+
    &j/                        ^ RI Ht ^ RIHt ^ RIt^ RIHtHt ^ RIHt ^ RI	H
t
 ]t. ROt ! R	 R
4      t ! R R]P                  4      t ! R R]P                  4      t ! R R]4      t]t ! R R4      tR# )    )annotationsN)MappingMutableMappingref)TensorTensorWeakRef	WeakIdRefWeakIdKeyDictionaryc                  .    ] tR t^tR R ltR tR tRtR# )_IterationGuardc                   V ^8  d   QhRR/#    returnNone )formats   "h/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/utils/weak.py__annotate___IterationGuard.__annotate__   s     0 0 0    c                	&    \        V4      V n        R # N)r   weakcontainer)selfr   s   &&r   __init___IterationGuard.__init__   s     /r   c                	d    V P                  4       pVe   VP                  P                  V 4       V # r   )r   
_iteratingadd)r   ws   & r   	__enter___IterationGuard.__enter__#   s,     =LLT"r   c                	    V P                  4       pVe:   VP                  pVP                  V 4       V'       g   VP                  4        R # R # R # r   )r   r    remove_commit_removals)r   etbr"   ss   &&&&  r   __exit___IterationGuard.__exit__)   sB     =AHHTN""$  r   )r   N)__name__
__module____qualname____firstlineno__r   r#   r,   __static_attributes__r   r   r   r   r      s    0%r   r   c                  P   a  ] tR t^KtR.tRR V 3R llltV 3R ltR tR tRt	V ;t
# )	r
   _idc                   V ^8  d   QhRR/# r   r   )r   s   "r   r   WeakIdRef.__annotate__N        ( (d (r   c                	F   < \        V4      V n        \        SV `  W4       R # r   )idr4   superr   r   keycallback	__class__s   &&&r   r   WeakIdRef.__init__N   s     c7'r   c                	h   < \         SV `  4       p\        VR 4      '       d   VP                  4        V# _fix_weakrefr:   __call__hasattrrB   r   rr>   s   & r   rD   WeakIdRef.__call__W   ,    G1n%%NNr   c                	    V P                   # r   r4   r   s   &r   __hash__WeakIdRef.__hash__^       xxr   c                	:    V ! 4       pV! 4       pVe   Ve   W#J # WJ # r   r   r   otherar*   s   &&  r   __eq__WeakIdRef.__eq__a   s*     FG=Q]6M}r   rK   r   r.   r/   r0   r1   	__slots__r   rD   rM   rT   r2   __classcell__r>   s   @r   r
   r
   K   s(    I( ( r   c                  P   a  ] tR t^wtR.tRR V 3R llltV 3R ltR tR tRt	V ;t
# )	_WeakHashRefr4   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   _WeakHashRef.__annotate__z   r7   r   c                	F   < \        V4      V n        \        SV `  W4       R # r   )hashr4   r:   r   r;   s   &&&r   r   _WeakHashRef.__init__z   s     9'r   c                	h   < \         SV `  4       p\        VR 4      '       d   VP                  4        V# rA   rC   rF   s   & r   rD   _WeakHashRef.__call__   rI   r   c                	    V P                   # r   rK   rL   s   &r   rM   _WeakHashRef.__hash__   rO   r   c                	b    V ! 4       pV! 4       pVe   Ve   \        V4      \        V4      8H  # WJ # r   )r_   rQ   s   &&  r   rT   _WeakHashRef.__eq__   s6     FG=Q]7d1g%%}r   rK   r   rV   rY   s   @r   r[   r[   w   s(    I( ( r   r[   c                      ] tR t^tR]3R R lltR R ltR R ltR R	 ltR
 t	R R lt
R R ltR R ltR t]tR tR$R ltR R ltR tR t]tR tR tR tR tR$R ltR$R R lltR tR  tR! tR" tR#tR# )%r   Nc                   V ^8  d   QhRR/# r   r   )r   s   "r   r    WeakIdKeyDictionary.__annotate__   s       r   c                	    / V n         W n        \        V 4      3R  R llpW0n        . V n        \        4       V n        RV n        Ve   V P                  V4       R# R# )c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   2WeakIdKeyDictionary.__init__.<locals>.__annotate__   s     		 		D 		r   c                    V! 4       pVe@   VP                   '       d   VP                  P                  V 4       R #  VP                  V  R # R #   \         d     R # i ; ir   )r    _pending_removalsappenddataKeyError)kselfrefr   s   && r   r&   ,WeakIdKeyDictionary.__init__.<locals>.remove   sU    9D???**11!4 IIaL   $ s   A AAFN)	rp   ref_typer   _removern   setr    
_dirty_lenupdate)r   dictru   r&   s   &&& r   r   WeakIdKeyDictionary.__init__   sP    	 !$i 		 !#%KK r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   ri      s      $ r   c                	    V P                   P                  pV P                  p  V! 4       p Y# K    \         d     R# i ; i  \         d     K.  i ; iTN)rn   poprp   
IndexErrorrq   )r   r   dr<   s   &   r   r'   $WeakIdKeyDictionary._commit_removals   s^    
 $$((IIeF	  
  s   1 A A A AAc                   V ^8  d   QhRR/# r   r   )r   s   "r   r   ri      s          r   c                	    V P                   pV P                   Uu. uF  q"V9   g   K  VNK  	  upV n        R V n        R# u upi )FN)rp   rn   rx   )r   r   rr   s   &  r   _scrub_removals#WeakIdKeyDictionary._scrub_removals   s=    II-1-C-C!N-CAv!!-C!N "Os   ??c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   ri      s     * *$ *r   c                	L    R V n         V P                  V P                  V4       R# r~   )rx   rp   ru   r   r<   s   &&r   __delitem__WeakIdKeyDictionary.__delitem__   s    IIdmmC()r   c                	F    V P                   V P                  V4      ,          # r   )rp   ru   r   s   &&r   __getitem__WeakIdKeyDictionary.__getitem__   s    yys+,,r   c                   V ^8  d   QhRR/# )r   r   intr   )r   s   "r   r   ri      s     < < <r   c                	    V P                   '       d#   V P                  '       d   V P                  4        \        V P                  4      \        V P                  4      ,
          # r   )rx   rn   r   lenrp   rL   s   &r   __len__WeakIdKeyDictionary.__len__   sB    ???t555   "499~D$:$: ;;;r   c                   V ^8  d   QhRR/# )r   r   strr   )r   s   "r   r   ri      s     ? ?# ?r   c                	P    R V P                   P                   R\        V 4      R R2# )<z at z#x>)r>   r.   r9   rL   s   &r   __repr__WeakIdKeyDictionary.__repr__   s(    4>>**+44}A>>r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   ri      s     < < <r   c                	T    W P                   V P                  WP                  4      &   R # r   )rp   ru   rv   )r   r<   values   &&&r   __setitem__WeakIdKeyDictionary.__setitem__   s    6;		$--\\23r   c                	    \        4       p\        V 4      ;_uu_ 4        V P                  P                  4        F  w  r#V! 4       pVf   K  W1V&   K  	  R R R 4       V#   + '       g   i     T# ; ir   )r   r   rp   items)r   newr<   r   os   &    r   copyWeakIdKeyDictionary.copy   s[    !#T"""iioo/
E="F 0 #
 
 #"
 
s   (AAA.	c                	   ^ RI Hp V P                  4       p\        V 4      ;_uu_ 4        V P                  P                  4        F  w  rEV! 4       pVf   K  V! WQ4      W6&   K  	  RRR4       V#   + '       g   i     T# ; i)r   )deepcopyN)r   r   r>   r   rp   r   )r   memor   r   r<   r   r   s   &&     r   __deepcopy__ WeakIdKeyDictionary.__deepcopy__   sg    !nnT"""iioo/
E=%e2CF 0 #
 
 #"
 
s   (A/A//B 	c                	X    V P                   P                  V P                  V4      V4      # r   )rp   getru   r   r<   defaults   &&&r   r   WeakIdKeyDictionary.get   s     yy}}T]]3/99r   c                   V ^8  d   QhRR/# )r   r   boolr   )r   s   "r   r   ri      s      4 r   c                	f     V P                  V4      pY P                  9   #   \         d     R # i ; i)F)ru   	TypeErrorrp   )r   r<   wrs   && r   __contains__ WeakIdKeyDictionary.__contains__   s7    	s#B YY  		s   ! 00c              #  	   "   \        V 4      ;_uu_ 4        V P                  P                  4        F  w  rV! 4       pVf   K  W23x  K  	  R R R 4       R #   + '       g   i     R # ; i5ir   r   rp   r   )r   r   r   r<   s   &   r   r   WeakIdKeyDictionary.items   sI     T""!YY__.	d?*$ / #"""s"   A*(A	A
A*A'	!	A*c              #  	   "   \        V 4      ;_uu_ 4        V P                   F  pV! 4       pVf   K  Vx  K  	  R R R 4       R #   + '       g   i     R # ; i5ir   )r   rp   )r   r   objs   &  r   keysWeakIdKeyDictionary.keys  s=     T""iid?I   #"""s    AAA
AA		Ac              #  	   "   \        V 4      ;_uu_ 4        V P                  P                  4        F  w  rV! 4       f   K  Vx  K  	  R R R 4       R #   + '       g   i     R # ; i5ir   r   )r   r   r   s   &  r   valuesWeakIdKeyDictionary.values  sB     T""!YY__.	4#K / #"""s"   A'&AA	
A'A$		A'c                ,    \        V P                  4      # )aJ  Return a list of weak references to the keys.

The references are not guaranteed to be 'live' at the time
they are used, so the result of calling the references needs
to be checked before being used.  This can be used to avoid
creating references that will cause the garbage collector to
keep the keys around longer than needed.

)listrp   rL   s   &r   keyrefsWeakIdKeyDictionary.keyrefs  s     DIIr   c                	j    R V n          V P                  P                  4       w  rV! 4       pVf   K*  W23# T)rx   rp   popitem)r   r<   r   r   s   &   r   r   WeakIdKeyDictionary.popitem  s3    **,JCA}xr   c                	j    R V n         V P                  P                  ! V P                  V4      .VO5!  # r   )rx   rp   r   ru   )r   r<   argss   &&*r   r   WeakIdKeyDictionary.pop(  s*    yy}}T]]3/7$77r   c                	l    V P                   P                  V P                  WP                  4      V4      # r   )rp   
setdefaultru   rv   r   s   &&&r   r   WeakIdKeyDictionary.setdefault-  s+    yy##MM#||,g
 	
r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   ri   2  s        T  r   c                	   V P                   pVeZ   \        VR4      '       g   \        / 4      ! V4      pVP                  4        F"  w  rEWSV P	                  W@P
                  4      &   K$  	  V'       d   V P                  V4       R # R # )Nr   )rp   rE   typer   ru   rv   ry   )r   rz   kwargsr   r<   r   s   &&,   r   ry   WeakIdKeyDictionary.update2  sf    II4))Bx~"jjl
6;$--\\23 +KK r   c                	(    V P                  V4       V # r   )ry   )r   rR   s   &&r   __ior__WeakIdKeyDictionary.__ior__<  s    Er   c                	    \        V\        P                  4      '       d$   V P                  4       pVP	                  V4       V# \
        # r   )
isinstance_collections_abcr   r   ry   NotImplementedr   rR   cs   && r   __or__WeakIdKeyDictionary.__or__@  s7    e-5566		AHHUOHr   c                	    \        V\        P                  4      '       d5   V P                  4       pVP	                  V4       VP	                  V 4       V# \
        # r   )r   r   r   r>   ry   r   r   s   && r   __ror__WeakIdKeyDictionary.__ror__G  sC    e-5566 AHHUOHHTNHr   c                	   \        V\        4      '       g   \        # V P                  4        UUu/ uF  w  r#\	        V4      VbK  	  uppVP                  4        UUu/ uF  w  r#\	        V4      VbK  	  upp8H  # u uppi u uppi r   )r   r   r   r   r9   )r   rR   rr   vs   &&  r   rT   WeakIdKeyDictionary.__eq__Q  sp    %))!!%)ZZ\2\TQ1q\2!&7
!.BqE1H7
 
 	
2 7
s   A:B )rx   r    rn   rv   rp   ru   r   ) r.   r/   r0   r1   r
   r   r'   r   r   r   r   r   r   r   __copy__r   r   r   r   r   __iter__r   r   r   r   r   ry   r   r   r   rT   r2   r   r   r   r   r      s     9 0$ 
*-<?< H	:% H 
 8


 
r   c                  8    ] tR tRt$ RtR]R&   R R ltR tRtR	# )
r	   i]  zuWrapper around a weak ref of a Tensor that handles the _fix_weakref() call required when unwrapping a Tensor weakref.zWeakRef[Tensor]r   c                    V ^8  d   QhRRRR/# )r   tensorr   r   r   r   )r   s   "r   r   TensorWeakRef.__annotate__b  s     ' 'v '$ 'r   c                	    \        V\        4      '       g   \        R \        V4       R24      h\        P
                  ! V4      V n        R# )expected torch.Tensor, got .N)r   r   AssertionErrorr   weakrefr   )r   r   s   &&r   r   TensorWeakRef.__init__b  s8    &&)) #>tF|nA!NOO;;v&r   c                	    V P                  4       pVf   V# \        V\        4      '       g   \        R\	        V4       R24      hVP                  4        V# )Nr   r   )r   r   r   r   r   rB   )r   outs   & r   rD   TensorWeakRef.__call__g  sN    hhj;J#v&& #>tCyk!KLL
r   r   N)	r.   r/   r0   r1   __doc____annotations__r   rD   r2   r   r   r   r	   r	   ]  s    	'
r   )r	   r
   r   WeakTensorKeyDictionary)
__future__r   collections.abcabcr   r   r   r   r   torchr   WeakRef__all__r   r
   r[   r   r   r	   r   r   r   <module>r      ss    " *  3   % %d' 'X7;; D}
. }
B .  r   