ó
    EñiœÍ  ã                  ól  • % S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKrS SKJ	r	J
r
JrJr  S SKJr  S SKrS SKJrJr  S SKJrJrJr  \(       a  S SKJr  SS	/r S SKrS
r\R<                  " 5       r0 r S\!S'   \" SSS9r" " S S5      r#S r$ " S S	\RJ                  RL                  \#5      r'S r(\RR                  S 5       r*\RR                  S 5       r+\RR                  S 5       r,S r-S r.Sq/S r0S r1S'S jr2S r3S(S jr4 " S  S5      r5\Rl                  \5Rn                  l6        \#Rp                  Rl                  \5Rp                  l6        \#Rr                  Rl                  \5Rr                  l6        \Rl                  \5Rt                  l6         " S! S"\75      r; " S# S$\5\;S%9r<S)S& jr=g! \ a    SrSr GNRf = f)*é    )ÚannotationsN)ÚAnyÚcastÚTYPE_CHECKINGÚTypeVar)ÚSelf)Ú_toÚ_type)Ú_boolÚ_intÚStorage)ÚDeviceLikeTypeÚTypedStorageÚUntypedStorageTFzdict[int, threading.RLock]Ú_share_memory_mapÚTú_StorageBase | TypedStorage)Úboundc                  óz  ^ • \ rS rSr% S\S'   SrS\S'   SrS\S'   S\S	'   S
rS\S'   S
rS\S'   S r	S_S jr
S rS rS`SaS jjrSbS jrS_S jrS_S jr Sc     SdS jjrScSbS jjrScSbS jjrS_S jrS_S jrS_S jrSeS jrS rS r\SfS  j5       r\SfS! j5       r\SgS" j5       r\S
S
S#. SgS$ jj5       r\S
S%.S& j5       r\SgS' j5       r \SgS( j5       r!SbS) jr"S* r#ShS+ jr$SbS, jr%S- r&S. r'S/ r(SeS0 jr)\SgS1 j5       r*S2 r+\S3 5       r,\-S4 5       r.\-S5 5       r/\SbS6 j5       r0\SbS7 j5       r1S8 r2SiS9 jr3S: r4S; r5S< r6S= r7S> r8U 4S? jr9S@ r:SA r;SB r<SC r=SD r>SSE.SjSF jjr?SG r@SH rASI rBSJ rCSK rDSL rESM rFSN rGSO rHSP rISQ rJSR rKSS rLST rMSU rNSV rOSkSlSW jjrPSkSlSX jjrQSY rR\SZS%.S[ j5       rSS\ rTS] rUS^rVU =rW$ )mÚ_StorageBaseé)   r   Ú_cdataFr   Ú	is_sparseÚis_sparse_csrztorch.deviceÚdeviceNútorch.device | NoneÚ_fake_devicez
int | NoneÚ_checkpoint_offsetc                ó   • g ©N© ©ÚselfÚargsÚkwargss      ÚJ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/torch/storage.pyÚ__init__Ú_StorageBase.__init__5   s   € Øó    c                ó   • [         er    ©ÚNotImplementedError©r#   s    r&   Ú__len__Ú_StorageBase.__len__8   ó   € Ü!Ð!r)   c                ó   • [         er    r+   ©r#   Úidxs     r&   Ú__getitem__Ú_StorageBase.__getitem__;   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú__setitem__Ú_StorageBase.__setitem__>   r0   r)   c                ó   • [         er    r+   ©r#   ÚsourceÚnon_blockings      r&   Úcopy_Ú_StorageBase.copy_A   r0   r)   c                ó   • [         er    r+   r-   s    r&   ÚnewÚ_StorageBase.newD   r0   r)   c                ó   • [         er    r+   r-   s    r&   ÚnbytesÚ_StorageBase.nbytesG   r0   r)   c                ó"   • U R                  5       $ r    )rC   r-   s    r&   ÚsizeÚ_StorageBase.sizeJ   s   € Ø�{‰{‹}Ðr)   c                ó   • [        XU5      $ r    )r
   )r#   Údtyper<   s      r&   ÚtypeÚ_StorageBase.typeM   s   € ô �T ,Ó/Ð/r)   c                óˆ   • U(       a  [         R                  " SU5      O[         R                  " S5      nU R                  X2S9$ )a»  Returns a copy of this object in CUDA memory.

If this object is already in CUDA memory and on the correct device, then
no copy is performed and the original object is returned.

Args:
    device (int): The destination GPU id. Defaults to the current device.
    non_blocking (bool): If ``True`` and the source is in pinned memory,
        the copy will be asynchronous with respect to the host. Otherwise,
        the argument has no effect.
Úcuda©r   r<   ©Útorchr   Úto©r#   r   r<   Údevice2s       r&   rM   Ú_StorageBase.cudaR   s2   € ö 39”%—,’,˜v vÔ.¼e¿lºlÈ6Ó>RˆØ�w‰w˜gˆwÐAÐAr)   c                óˆ   • U(       a  [         R                  " SU5      O[         R                  " S5      nU R                  X2S9$ )a¹  Returns a copy of this object in HPU memory.

If this object is already in HPU memory and on the correct device, then
no copy is performed and the original object is returned.

Args:
    device (int): The destination HPU id. Defaults to the current device.
    non_blocking (bool): If ``True`` and the source is in pinned memory,
        the copy will be asynchronous with respect to the host. Otherwise,
        the argument has no effect.
ÚhpurN   rO   rR   s       r&   rV   Ú_StorageBase.hpua   s2   € ö 28”%—,’,˜u fÔ-¼U¿\º\È%Ó=PˆØ�w‰w˜gˆwÐAÐAr)   c                ó   • [         er    r+   r-   s    r&   Úelement_sizeÚ_StorageBase.element_sizep   r0   r)   c                ó.   • U R                   R                  $ r    )r   Úindexr-   s    r&   Ú
get_deviceÚ_StorageBase.get_devices   s   € Ø�{‰{× Ñ Ð r)   c                ó   • [         er    r+   r-   s    r&   Údata_ptrÚ_StorageBase.data_ptrv   r0   r)   c                ó   • [         er    r+   r-   s    r&   Ú	resizableÚ_StorageBase.resizabley   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú_share_filename_cpu_Ú!_StorageBase._share_filename_cpu_}   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú_share_fd_cpu_Ú_StorageBase._share_fd_cpu_€   r0   r)   c                ó   • [         er    r+   ©ÚclsrF   s     r&   Ú_new_using_filename_cpuÚ$_StorageBase._new_using_filename_cpuƒ   ó   € ä!Ð!r)   c                ó   • [         er    r+   rl   s     r&   Ú_new_using_fd_cpuÚ_StorageBase._new_using_fd_cpu‡   rp   r)   c                ó   • [         er    r+   ©rm   r$   r%   s      r&   Úfrom_bufferÚ_StorageBase.from_buffer‹   rp   r)   )r   rI   c               ó   • [         er    r+   )rm   ÚmanagerÚobjrF   r   rI   s         r&   Ú_new_shared_filename_cpuÚ%_StorageBase._new_shared_filename_cpu�   s
   € ô "Ð!r)   ©r   c               ó&   • U R                   " U0 UD6$ r    )Ú_release_ipc_counter_cuda©rm   r   r$   r%   s       r&   Ú_release_ipc_counterÚ!_StorageBase._release_ipc_counter›   s   € à×,Ò,¨dÐ=°fÑ=Ð=r)   c                ó   • [         er    r+   ru   s      r&   r   Ú&_StorageBase._release_ipc_counter_cudaŸ   rp   r)   c                ó   • [         er    r+   ru   s      r&   Ú_new_with_weak_ptrÚ_StorageBase._new_with_weak_ptr£   rp   r)   c                ó   • [         er    r+   r-   s    r&   Ú_shared_decrefÚ_StorageBase._shared_decref§   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú_write_fileÚ_StorageBase._write_fileª   r0   r)   c                ó   • [         er    r+   ©r#   rF   s     r&   Úresize_Ú_StorageBase.resize_­   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú	_weak_refÚ_StorageBase._weak_ref°   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú_set_from_fileÚ_StorageBase._set_from_file³   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú
_set_cdataÚ_StorageBase._set_cdata¶   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú_share_cuda_Ú_StorageBase._share_cuda_¹   r0   r)   c                ó   • [         er    r+   r-   s    r&   Ú	is_sharedÚ_StorageBase.is_shared¼   r0   r)   c                ó   • [         er    r+   ru   s      r&   Ú_new_shared_cudaÚ_StorageBase._new_shared_cuda¿   rp   r)   c                ó   • [         er    r+   r"   s      r&   Ú_shared_increfÚ_StorageBase._shared_increfÃ   r0   r)   c                ó   • [         er    r+   ru   s      r&   Ú_free_weak_refÚ_StorageBase._free_weak_refÆ   rp   r)   c                ó   • [         er    r+   r-   s    r&   Úis_cudaÚ_StorageBase.is_cudaÊ   rp   r)   c                ó   • [         er    r+   r-   s    r&   Úis_hpuÚ_StorageBase.is_hpuÎ   rp   r)   c                ó   • [         er    r+   )rm   ÚfilenameÚsharedrC   s       r&   Ú	from_fileÚ_StorageBase.from_fileÒ   rp   r)   c                ó   • [         er    r+   ru   s      r&   Ú_expiredÚ_StorageBase._expiredÖ   rp   r)   c                ó   • [         er    r+   r"   s      r&   Ú	_byteswapÚ_StorageBase._byteswapÚ   r0   r)   c                ó   • [         er    r+   r"   s      r&   Ú_get_filenameÚ_StorageBase._get_filenameÝ   r0   r)   c                ó"  ^ • S[         R                  " T 5       ST R                   S[        T 5       S3nT R                  R                  S:X  a  SU-   $ SSR                  U 4S	 j[        T R                  5       5       5       5      -   nUS
-   U-   $ )NÚ[z(device=ú
) of size Ú]Úmetaú...
Ú ú
 c              3  ó@   >#   • U  H  n[        TU   5      v •  M     g 7fr    ©Ústr©Ú.0Úir#   s     €r&   Ú	<genexpr>Ú(_StorageBase.__repr__.<locals>.<genexpr>ä   s   øé € Ð#MÒ:L°Q¤C¨¨Q©§L LÒ:Lùó   ƒÚ
)rP   Útypenamer   ÚlenrJ   ÚjoinÚrangerF   ©r#   Úinfo_strÚdata_strs   `  r&   Ú__repr__Ú_StorageBase.__repr__à   s�   ø€ Ø”u—~’~ dÓ+Ð,¨H°T·[±[°MÀÌCÐPTËIÈ;ÐVWÐXˆØ�;‰;×Ñ˜vÓ%Ø˜XÑ%Ð%Ø˜Ÿ™Ô#M¼%ÀÇ	Á	ÃÔ:LÓ#MÓMÑMˆØ˜$‰ Ñ)Ð)r)   c                ó\   ^ • [        U 4S j[        T R                  5       5       5       5      $ )Nc              3  ó.   >#   • U  H
  nTU   v •  M     g 7fr    r!   rÉ   s     €r&   rÌ   Ú(_StorageBase.__iter__.<locals>.<genexpr>è   ó   øé € Ð8Ò%7 �D˜–GÒ%7ùó   ƒ)ÚiterrÓ   rF   r-   s   `r&   Ú__iter__Ú_StorageBase.__iter__ç   s   ø€ ÜÔ8¤U¨4¯9©9«;Ô%7Ó8Ó8Ð8r)   c                ó"   • U R                  5       $ r    )Úcloner-   s    r&   Ú__copy__Ú_StorageBase.__copy__ê   s   € Ø�z‰z‹|Ðr)   c                ó¢   • UR                  S0 5      nU R                  U;   a  XR                     $ U R                  5       nX!U R                  '   U$ )NrP   )Ú
setdefaultr   râ   )r#   ÚmemoÚnew_storages      r&   Ú__deepcopy__Ú_StorageBase.__deepcopy__í   sH   € Ø�‰˜w¨Ó+ˆØ�;‰;˜$ÓØŸ™Ñ$Ð$Ø—j‘j“lˆØ'ˆT�[‰[ÑØÐr)   c                ó„   • [         R                  " 5       n[        R                  " XSS9  [        UR                  5       44$ ©NF)Ú_use_new_zipfile_serialization©ÚioÚBytesIOrP   ÚsaveÚ_load_from_bytesÚgetvalue©r#   Úbs     r&   Ú
__reduce__Ú_StorageBase.__reduce__õ   ó.   € Ü�JŠJ‹LˆÜ�
Š
�4¸5ÒAÜ  1§:¡:£< /Ð2Ð2r)   c                óB   >• [         TU ]  5       U R                  5       -   $ r    )ÚsuperÚ
__sizeof__rF   ©r#   Ú	__class__s    €r&   rû   Ú_StorageBase.__sizeof__ú   s   ø€ Ü‰wÑ!Ó# d§i¡i£kÑ1Ð1r)   c                óp   • [        U 5      " U R                  5       U R                  S9R                  U 5      $ )úReturn a copy of this storage.r}   )rJ   rC   r   r=   r-   s    r&   râ   Ú_StorageBase.cloneý   s(   € ä�DŒz˜$Ÿ+™+›-°·±Ñ<×BÑBÀ4ÓHÐHr)   c                ó   • [        U 5      $ ©z6Return a list containing the elements of this storage.)Úlistr-   s    r&   ÚtolistÚ_StorageBase.tolist  s   € ä�D‹zÐr)   c                ó¢   • U R                   R                  S:w  a4  [        R                  " U R	                  5       5      R                  U S5      $ U $ )úAReturn a CPU copy of this storage if it's not already on the CPU.ÚcpuF©r   rJ   rP   r   rF   r=   r-   s    r&   r	  Ú_StorageBase.cpu  s=   € à�;‰;×Ñ˜uÓ$Ü×'Ò'¨¯	©	«Ó4×:Ñ:¸4ÀÓGÐGØˆr)   c                ó    • U R                   R                  S:w  a3  [        R                  " U R	                  5       SS9R                  U S5      $ U $ )zAReturn a MPS copy of this storage if it's not already on the MPS.Úmpsr}   Fr
  r-   s    r&   r  Ú_StorageBase.mps  s?   € à�;‰;×Ñ˜uÓ$Ü×'Ò'¨¯	©	«¸EÑB×HÑHÈÈuÓUÐUØˆr)   c                ó¦  • [        U[        R                  5      (       d  [        S[	        U5       35      e[        R
                  " / [        R                  U R                  S9R                  [        [        U 5      5      R                  U5      R                  5       nUR                  5       U R                  5       :X  a  UR                  5       nU$ ©Nz*Argument 'dtype' must be torch.dtype, not ©rI   r   )Ú
isinstancerP   rI   Ú	TypeErrorrJ   ÚtensorÚuint8r   Úset_r   r   rQ   Ú_typed_storager`   râ   ©r#   rI   Ústorages      r&   r	   Ú_StorageBase._to  s’   € Ü˜%¤§¡×-Ñ-ÜÐHÌÈeËÈÐVÓWÐWä�LŠL˜¤5§;¡;°t·{±{ÑCß‰T”$”w Ó%Ó&ß‰R�‹Yß‰^Óð	 	ð ×ÑÓ §¡£Ó0Ø—m‘m“oˆGØˆr)   ©r<   c               ó„   • [        U[        R                  5      (       d  [        R                  " U5      n[        XU5      $ r    )r  rP   r   r	   )r#   r   r<   s      r&   rQ   Ú_StorageBase.to  s.   € Ü˜&¤%§,¡,×/Ñ/Ü—\’\ &Ó)ˆFÜ�4 Ó.Ð.r)   c                ó@   • U R                  [        R                  5      $ ©z"Casts this storage to double type.)r	   rP   Údoubler-   s    r&   r   Ú_StorageBase.double#  ó   € à�x‰xœŸ™Ó%Ð%r)   c                ó@   • U R                  [        R                  5      $ ©z!Casts this storage to float type.)r	   rP   Úfloatr-   s    r&   r%  Ú_StorageBase.float'  ó   € à�x‰xœŸ™Ó$Ð$r)   c                ó@   • U R                  [        R                  5      $ ©z Casts this storage to half type.)r	   rP   Úhalfr-   s    r&   r*  Ú_StorageBase.half+  ó   € à�x‰xœŸ
™
Ó#Ð#r)   c                ó@   • U R                  [        R                  5      $ ©z Casts this storage to long type.)r	   rP   Úlongr-   s    r&   r/  Ú_StorageBase.long/  r,  r)   c                ó@   • U R                  [        R                  5      $ ©zCasts this storage to int type.)r	   rP   Úintr-   s    r&   r3  Ú_StorageBase.int3  s   € à�x‰xœŸ	™	Ó"Ð"r)   c                ó@   • U R                  [        R                  5      $ ©z!Casts this storage to short type.)r	   rP   Úshortr-   s    r&   r7  Ú_StorageBase.short7  r'  r)   c                ó@   • U R                  [        R                  5      $ ©z Casts this storage to char type.)r	   rP   Úint8r-   s    r&   ÚcharÚ_StorageBase.char;  r,  r)   c                ó@   • U R                  [        R                  5      $ ©z Casts this storage to byte type.)r	   rP   r  r-   s    r&   ÚbyteÚ_StorageBase.byte?  r'  r)   c                ó@   • U R                  [        R                  5      $ ©z Casts this storage to bool type.)r	   rP   Úboolr-   s    r&   rD  Ú_StorageBase.boolC  r,  r)   c                ó@   • U R                  [        R                  5      $ ©z$Casts this storage to bfloat16 type.)r	   rP   Úbfloat16r-   s    r&   rH  Ú_StorageBase.bfloat16G  s   € à�x‰xœŸ™Ó'Ð'r)   c                ó@   • U R                  [        R                  5      $ ©z*Casts this storage to complex double type.)r	   rP   Úcdoubler-   s    r&   Úcomplex_doubleÚ_StorageBase.complex_doubleK  s   € à�x‰xœŸ™Ó&Ð&r)   c                ó@   • U R                  [        R                  5      $ ©z)Casts this storage to complex float type.)r	   rP   Úcfloatr-   s    r&   Úcomplex_floatÚ_StorageBase.complex_floatO  r"  r)   c                ó@   • U R                  [        R                  5      $ ©z&Casts this storage to float8_e5m2 type)r	   rP   Úfloat8_e5m2r-   s    r&   rV  Ú_StorageBase.float8_e5m2S  s   € à�x‰xœ×)Ñ)Ó*Ð*r)   c                ó@   • U R                  [        R                  5      $ ©z(Casts this storage to float8_e4m3fn type)r	   rP   Úfloat8_e4m3fnr-   s    r&   rZ  Ú_StorageBase.float8_e4m3fnW  s   € à�x‰xœ×+Ñ+Ó,Ð,r)   c                ó@   • U R                  [        R                  5      $ ©z*Casts this storage to float8_e5m2fnuz type)r	   rP   Úfloat8_e5m2fnuzr-   s    r&   r^  Ú_StorageBase.float8_e5m2fnuz[  ó   € à�x‰xœ×-Ñ-Ó.Ð.r)   c                ó@   • U R                  [        R                  5      $ ©z*Casts this storage to float8_e4m3fnuz type)r	   rP   Úfloat8_e4m3fnuzr-   s    r&   rc  Ú_StorageBase.float8_e4m3fnuz_  r`  r)   c                ó¶   • [         R                  " / [         R                  U R                  S9R	                  [        [        U 5      5      R                  U5      $ )zýDetermine whether the CPU storage is already pinned on device.

Args:
    device (str or torch.device): The device to pin memory on (default: ``'cuda'``).
        This argument is discouraged and subject to deprecated.

Returns:
    A boolean variable.
r  )rP   r  r  r   r  r   r   Ú	is_pinned©r#   r   s     r&   rf  Ú_StorageBase.is_pinnedc  s<   € ô �LŠL˜¤5§;¡;°t·{±{ÑCß‰T”$”w Ó%Ó&ß‰Y�vÓð	
r)   c                óD  • U R                   R                  S:w  a  [        SU R                  5        S35      e[        R                  " / [        R
                  U R                   S9R                  [        [        U 5      5      R                  U5      nUR                  5       $ )a  Copy the CPU storage to pinned memory, if it's not already pinned.

Args:
    device (str or torch.device): The device to pin memory on (default: ``'cuda'``).
        This argument is discouraged and subject to deprecated.

Returns:
    A pinned CPU storage.
r	  zcannot pin 'z' only CPU memory can be pinnedr  )r   rJ   r  rP   r  r  r  r   r   Ú
pin_memoryÚuntyped_storage)r#   r   Úpinned_tensors      r&   rj  Ú_StorageBase.pin_memorys  s|   € ð �;‰;×Ñ˜uÓ$Ü˜l¨4¯9©9«;¨-Ð7VÐWÓXÐXô �LŠL˜¤5§;¡;°t·{±{ÑCß‰T”$”w Ó%Ó&ß‰Z˜Óð 	ð
 ×,Ñ,Ó.Ð.r)   c                óâ   • SSK Jn  U R                  R                  S[        R
                  R                  5       4;   a   U $ U" 5       S:X  a  U R                  5         U $ U R                  5         U $ )ú.See :meth:`torch.UntypedStorage.share_memory_`r   ©Úget_sharing_strategyrM   Úfile_system)	Útorch.multiprocessingrq  r   rJ   rP   Ú_CÚ_get_privateuse1_backend_namerf   ri   )r#   rq  s     r&   Úshare_memory_Ú_StorageBase.share_memory_‡  sf   € å>à�;‰;×Ñ ¬¯©×(NÑ(NÓ(PÐQÓQØð
 ˆñ	 "Ó# }Ó4Ø×%Ñ%Ô'ð ˆð ×ÑÔ!Øˆr)   r	  c               óþ   • SSK Jn  [        R                  " U5      nUR                  S[        R
                  R                  5       S4;   a  U " XS9$ U" 5       S:X  a  U R                  U5      $ U R                  U5      $ )ú>Create a new storage in shared memory with the same data type.r   rp  rM   rV   r}   rr  )	rs  rq  rP   r   rJ   rt  ru  rn   rr   )rm   rF   r   rq  s       r&   Ú_new_sharedÚ_StorageBase._new_shared“  sm   € õ 	?ä—’˜fÓ%ˆØ�;‰;˜6¤5§8¡8×#IÑ#IÓ#KÈUÐSÓSÙ�tÑ+Ð+Ù!Ó# }Ó4Ø×.Ñ.¨tÓ4Ð4à×(Ñ(¨Ó.Ð.r)   c                ó   • U $ r    r!   r-   s    r&   ÚuntypedÚ_StorageBase.untyped   s   € Øˆr)   c                ó¶   • [         R                  R                  U5      nUR                  (       a  [	        [        US-  5      S5      nU R                  U5        g)zSwap bytes in underlying data.é   é   N)rP   Ú_utilsÚ_element_sizeÚ
is_complexÚmaxr3  r¹   )r#   rI   Ú	elem_sizes      r&   ÚbyteswapÚ_StorageBase.byteswap£  s@   € ä—L‘L×.Ñ.¨uÓ5ˆ	à××ÜœC 	¨A¡Ó.°Ó2ˆIØ�‰�yÕ!r)   r!   ©Úreturnr   r    )r;   r   r<   z_bool | NonerŠ  r   )rŠ  r   ©NF)rI   ú
str | Noner<   r   rŠ  r   )rŠ  r   )rF   r   rŠ  r   ©rŠ  r   )rF   r   ©rŠ  rŒ  )r   r   r<   r   ©rM   ©r   zstr | torch.device)XÚ__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r   r   r   r   r'   r.   r4   r7   r=   r@   rC   rF   rJ   rM   rV   rY   r]   r`   rc   rf   ri   Úclassmethodrn   rr   rv   r{   r�   r   r†   r‰   rŒ   r�   r“   r–   r™   rœ   rŸ   r¢   r¥   r¨   Úpropertyr«   r®   r³   r¶   r¹   r¼   r×   rß   rã   ré   rö   rû   râ   r  r	  r  r	   rQ   r   r%  r*  r/  r3  r7  r<  r@  rD  rH  rM  rR  rV  rZ  r^  rc  rf  rj  rv  rz  r}  r‡  Ú__static_attributes__Ú__classcell__©rý   s   @r&   r   r   )   sÈ  ø‡ ØƒKØ€IˆuÓØ €M�5Ó ØÓð )-€LÐ%Ó,à%)Ð˜
Ó)òô"ò"ò"ö"ô"ô"ôð ?Dð0Øð0Ø6;ð0à	$õ0ö
BöBô"ô!ô"ô"ò"ò"ð ó"ó ð"ð ó"ó ð"ð ó"ó ð"ð ð Øñ	"ð 
ô	"ó ð	"ð Ø04ô >ó ð>ð ó"ó ð"ð ó"ó ð"ô"ò"ô"ô"ò"ò"ò"ô"ð ó"ó ð"ò"ð ñ"ó ð"ð ñ"ó ð"ð ñ"ó ð"ð ó"ó ð"ð ó"ó ð"ò"ô"ò*ò9òòò3õ
2òIòòòòð CH÷ /ò
&ò%ò$ò$ò#ò%ò$ò%ò$ò(ò'ò&ò+ò-ò/ò/ö
ö /ò(
ð Ø).ô 
/ó ð
/ò÷"ð "r)   r   c                óF   ^ • [         R                  " T 5      U 4S j5       nU$ )Nc                ó  >• S nS n[            U R                  nU[        ;   a
  [        U   nO5[        R                  " 5       [        U'   [        U   R                  5         UnS S S 5        Ub  U    S S S 5         T" U /UQ70 UD6UbY  U R                  U:w  a  [        SU SU R                   35      e[            [        U   R                  5         [        U	 S S S 5        $ $ ! , (       d  f       N†= f! , (       d  f       Nˆ= f! , (       d  f       $ = f! Ubj  U R                  U:w  a  [        SU SU R                   35      e[            [        U   R                  5         [        U	 S S S 5        f ! , (       d  f       f = ff = f)Nz-storage cdata changed unexpectedly: expected z, got )Ú_share_memory_lockr   r   Ú	threadingÚRLockÚacquireÚAssertionErrorÚrelease)r#   r$   r%   Úto_freeÚto_waitÚkeyÚfns         €r&   ÚwrapperÚ-_share_memory_lock_protected.<locals>.wrapper­  sp  ø€ àˆØˆÞØ—+‘+ˆCØÔ'Ó'Ü+¨CÑ0‘ä)2¯ªÓ):Ô! #Ñ&Ü! #Ñ&×.Ñ.Ô0Ø�÷  ð ÑÚØ÷ ð	3Ù�dÐ,˜TÒ, VÑ,ð Ñ"ð —;‘; 'Ó)Ü(ØGÈÀyÐPVÐW[×WbÑWbÐVcÐdóð ö (Ü% gÑ.×6Ñ6Ô8Ü)¨'Ð2÷ (Ð'ð #÷)  Õú÷ •ú÷ (Õ'ûð Ñ"ð —;‘; 'Ó)Ü(ØGÈÀyÐPVÐW[×WbÑWbÐVcÐdóð ö (Ü% gÑ.×6Ñ6Ô8Ü)¨'Ð2÷ (×'Ö'úð #úsH   ŒAC"Á/C3Á:D Â9DÃ"
C0Ã3
DÄ
D	Ä5FÅ
E2Å)	FÅ2
F Å<F)Ú	functoolsÚwraps)r¦  r§  s   ` r&   Ú_share_memory_lock_protectedr«  ¬  s&   ø€ Ü‡_‚_�RÓô 3ó ð 3ðD €Nr)   c                  óž   ^ • \ rS rSrU 4S jr\S 5       r\S 5       r\S
S j5       r\	U 4S j5       r
\	U 4S j5       r\	U 4S j5       rS	rU =r$ )r   iÓ  c                ón   >• U R                   R                  S:X  a  [        S5      e[        TU ]  " U0 UD6$ )NrÂ   ú$Not available for 'meta' device type)r   rJ   r,   rú   r4   ©r#   r$   r%   rý   s      €r&   r4   ÚUntypedStorage.__getitem__Ô  s6   ø€ Ø�;‰;×Ñ˜vÓ%Ü%Ð&LÓMÐMÜ‰wÒ" DÐ3¨FÑ3Ð3r)   c                ó4   • U R                   R                  S:H  $ ©NrM   ©r   rJ   r-   s    r&   r«   ÚUntypedStorage.is_cudaÙ  s   € à�{‰{×Ñ 6Ñ)Ð)r)   c                ó4   • U R                   R                  S:H  $ ©NrV   r³  r-   s    r&   r®   ÚUntypedStorage.is_hpuÝ  s   € à�{‰{×Ñ 5Ñ(Ð(r)   c                ó"   • U R                  5       $ )zßReturns the file name associated with this storage.

The file name will be a string if the storage is on CPU and was created via
:meth:`~torch.from_file()` with ``shared`` as ``True``. This attribute is ``None`` otherwise.
)r¼   r-   s    r&   r±   ÚUntypedStorage.filenameá  s   € ð ×!Ñ!Ó#Ð#r)   c                ó$   >• [         TU ]  " U0 UD6$ )a»  
Moves the storage to shared memory.

This is a no-op for storages already in shared memory and for CUDA
storages, which do not need to be moved for sharing across processes.
Storages in shared memory cannot be resized.

Note that to mitigate issues like `this <https://github.com/pytorch/pytorch/issues/95606>`_
it is thread safe to call this function from multiple threads on the same object.
It is NOT thread safe though to call any other function on self without proper
synchronization. Please see :doc:`/notes/multiprocessing` for more details.

.. note::
    When all references to a storage in shared memory are deleted, the associated shared memory
    object will also be deleted. PyTorch has a special cleanup process to ensure that this happens
    even if the current process exits unexpectedly.

    It is worth noting the difference between :meth:`share_memory_` and :meth:`from_file` with ``shared = True``

    #. ``share_memory_`` uses `shm_open(3) <https://man7.org/linux/man-pages/man3/shm_open.3.html>`_ to create a
       POSIX shared memory object while :meth:`from_file` uses
       `open(2) <https://man7.org/linux/man-pages/man2/open.2.html>`_ to open the filename passed by the user.
    #. Both use an `mmap(2) call <https://man7.org/linux/man-pages/man2/mmap.2.html>`_ with ``MAP_SHARED``
       to map the file/object into the current virtual address space
    #. ``share_memory_`` will call ``shm_unlink(3)`` on the object after mapping it to make sure the shared memory
       object is freed when no process has the object open. ``torch.from_file(shared=True)`` does not unlink the
       file. This file is persistent and will remain until it is deleted by the user.

Returns:
    ``self``
)rú   rv  r¯  s      €r&   rv  ÚUntypedStorage.share_memory_ê  s   ø€ ôB ‰wÒ$ dÐ5¨fÑ5Ð5r)   c                ó$   >• [         TU ]  " U0 UD6$ r    )rú   ri   r¯  s      €r&   ri   ÚUntypedStorage._share_fd_cpu_  s   ø€ ä‰wÒ% tÐ6¨vÑ6Ð6r)   c                ó$   >• [         TU ]  " U0 UD6$ r    )rú   rf   r¯  s      €r&   rf   Ú#UntypedStorage._share_filename_cpu_  s   ø€ ä‰wÒ+¨TÐ<°VÑ<Ð<r)   r!   rŽ  )r‘  r’  r“  r”  r4   r—  r«   r®   r±   r«  rv  ri   rf   r˜  r™  rš  s   @r&   r   r   Ó  s�   ø† õ4ð
 ñ*ó ð*ð ñ)ó ð)ð ó$ó ð$ð "ô 6ó "ð 6ðD "ô7ó "ð7ð "ô=ó "ö=r)   c                óT   • [         R                  " [        R                  " U 5      SS9$ )NF)Úweights_only)rP   Úloadrï   rð   )rõ   s    r&   rò   rò     s   € Ü�:Š:”b—j’j “m°%Ñ8Ð8r)   c                 óÈ  • [         R                  [         R                  [         R                  [         R                  [         R
                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  1$ r    )rP   rV  rZ  r^  rc  Úfloat8_e8m0fnuÚfloat4_e2m1fn_x2Úbits8Úbits16Úbits1x8Úbits2x4Úbits4x2Ú	complex32Úuint16Úuint32Úuint64r!   r)   r&   Ú_new_dtypesrÏ    sƒ   € ô
 	×ÑÜ×ÑÜ×ÑÜ×ÑÜ×ÑÜ×ÑÜ�‰Ü�‰Ü�‰Ü�‰Ü�‰Ü�‰Ü�‰Ü�‰Ü�‰ðð r)   c                 óH  • 0 [         R                  S_[         R                  S_[         R                  S_[         R                  S_[         R
                  S_[         R                  S_[         R                  S_[         R                  S_[         R                  S	_[         R                  S
_[         R                  S_[         R                  S_[         R                  S_[         R                  S_[         R                  S_[         R                   S_[         R"                  S_$ )NÚDoubleStorageÚFloatStorageÚHalfStorageÚLongStorageÚ
IntStorageÚShortStorageÚCharStorageÚByteStorageÚBoolStorageÚBFloat16StorageÚComplexDoubleStorageÚComplexFloatStorageÚQInt8StorageÚQInt32StorageÚQUInt8StorageÚQUInt4x2StorageÚQUInt2x4Storage)rP   r   r%  r*  r/  r3  Úint16r;  r  rD  rH  rL  rQ  Úqint8Úqint32Úquint8Úquint4x2Úquint2x4r!   r)   r&   Ú_dtype_to_storage_type_maprè  1  s  € ðÜ�‰�oðä�‰�^ðô 	�
‰
�Mðô 	�
‰
�Mð	ô
 	�	‰	�<ðô 	�‰�^ðô 	�
‰
�Mðô 	�‰�]ðô 	�
‰
�Mðô 	�‰Ð)ðô 	�‰Ð-ðô 	�‰Ð+ðô 	�‰�^ðô 	�‰�oðô 	�‰�oðô  	�‰Ð)ð!ô" 	�‰Ð)ð#ð r)   c                 ój   • [        5       R                  5        V Vs0 s H  u  pX_M	     nn nU$ s  snn f r    )rè  Úitems)r¥  ÚvalÚ	dtype_maps      r&   Ú_storage_type_to_dtype_maprí  M  s4   € ä*DÓ*F×*LÑ*LÔ*NÔOÒ*N™h˜c�’Ñ*N€IÑOØÐùó Ps   œ/c           
     ód  • U[         R                  [         R                  [         R                  [         R                  [         R
                  4;   a±  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R                  [         R
                  [         R                  0n[         R                  " XU   US9nO[         R                  " XUS9nUR                  5       R                  $ )Nr  )rP   rå  ræ  rç  rä  rã  r  Úint32r;  r  r  Ú_untyped_storage)ÚsequencerI   r   Úinterpret_dtypesÚ
tmp_tensors        r&   Ú_get_storage_from_sequencerô  S  s¾   € ØÜ�‰Ü�‰Ü�‰Ü�‰Ü�‰ðó ô �L‰Lœ%Ÿ+™+Ü�N‰NœEŸK™KÜ�N‰NœEŸK™KÜ�L‰Lœ%Ÿ+™+Ü�K‰KœŸ™ð
Ðô —\’\Ø¨UÑ3¸Fñ
‰
ô
 —\’\ (ÀÑGˆ
à×$Ñ$Ó&×7Ñ7Ð7r)   c                óx   • [         (       a   [        U [        [        R                  45      $ [        U [        5      $ r    )Ú	HAS_NUMPYr  r3  ÚnpÚinteger)Úxs    r&   Ú_isintrú  l  s*   € ß‚yÜ˜!œc¤2§:¡:Ð.Ó/Ð/ä˜!œSÓ!Ð!r)   c                 ó   • [         $ r    )Ú"_always_warn_typed_storage_removalr!   r)   r&   Ú&_get_always_warn_typed_storage_removalrý  v  s   € Ü-Ð-r)   c                ót   • [        U [        5      (       d!  [        S[        U 5      R                   35      eU qg )Nzalways_warn must be bool, got )r  rD  r¡  rJ   r‘  rü  )Úalways_warns    r&   Ú&_set_always_warn_typed_storage_removalr   z  s:   € ä�k¤4×(Ñ(ÜØ,¬T°+Ó->×-GÑ-GÐ,HÐIó
ð 	
ð *5Ñ&r)   c                ó¦   • S n[        5       (       d  U" 5       (       a3  Sn[        R                  " U[        U S-   S9  S[        R
                  S'   g g )Nc                 ó^   • [        [        S5      (       d  g[        R                  S   (       + $ )NÚ
has_warnedT)ÚhasattrÚ_warn_typed_storage_removalÚ__dict__r!   r)   r&   Úis_first_timeÚ2_warn_typed_storage_removal.<locals>.is_first_time†  s'   € ÜÔ2°L×AÑAØä2×;Ñ;¸LÑIÔIÐIr)   a  TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()r�  )Ú
stacklevelTr  )rý  ÚwarningsÚwarnÚUserWarningr  r  )r	  r  Úmessages      r&   r  r  ƒ  sQ   € òJô .×/Ñ/±=·?±?ðQð 	ô 	�Š�gœ{°zÀA±~ÒFØ=AÔ#×,Ñ,¨\Ò:ð 4Cr)   c                 ó*   • S[         R                  S'   g )NFr  )r  r  r!   r)   r&   Ú!_reset_warn_typed_storage_removalr  —  s   € Ø9>Ô×(Ñ(¨Ò6r)   c                ó|   • U R                  SS5      S   nUS[        R                  R                  5       S4;   a  U$ g)NÚ.r�  éÿÿÿÿrM   rV   r	  )ÚrsplitrP   rt  ru  )ÚmoduleÚ	last_parts     r&   Ú_get_device_from_moduler  ›  s<   € Ø—‘˜c 1Ó% bÑ)€IØ�VœUŸX™X×CÑCÓEÀuÐMÓMØÐàr)   c                  ór  ^ • \ rS rSr% SrS\S'   SrS\S'   S\S	'   \S
 5       r\ShS j5       r	S r
SSSSS.U 4S jjrSSSSS.S jr\S 5       r\S 5       rS rSiS jrS rSjS jrS rS rS rS rSkSlS jjrS rS r  Sm     SnS jjrSmSiS jjrSmSiS  jjrSS!.SoS" jjrS# rS$ rSpS% jr S& r!S' r"S( r#S) r$S* r%S+ r&U 4S, jr'S- r(S. r)S/ r*SqSrS0 jjr+SqSrS1 jjr,S2 r-S3 r.SS4.S5 jr/\S6 5       r0\S7 5       r1S8 r2S9 r3S: r4S; r5S< r6S= r7S> r8S? r9S@ r:SA r;\<SB 5       r=SC r>\<SD 5       r?\<SSSE.SF j5       r@SG rASH rBSI rCSJ rDSK rESL rFSM rGSN rHSO rISP rJSQ rKSR rLSS rMST rNSU rOSV rPSW rQ\<SX 5       rR\<SY 5       rSSZ rTS[ rUS\ rVS] rWS^ rXS_ rY\<S` 5       rZSa r[Sb r\\<SS4.Sc j5       r]Sd r^Se r_Sf r`SgraU =rb$ )sr   i£  Fr   r   Nr   r   útorch.dtyperI   c                ó   • U R                   $ r    )rI   r-   s    r&   Ú_dtypeÚTypedStorage._dtypeª  s   € à�z‰zÐr)   c                ó.   • U R                   R                  $ )z¥Returns the file name associated with this storage if the storage was memory mapped from a file.
or ``None`` if the storage was not created by memory mapping a file.)rð  r±   r-   s    r&   r±   ÚTypedStorage.filename®  s   € ð ×$Ñ$×-Ñ-Ð-r)   c                ón   • [        5         U R                  [        SU R                  5       5      U5        U $ )Nr   )r  Ú_setitemÚsliceÚ_size)r#   Úvalues     r&   Úfill_ÚTypedStorage.fill_´  s(   € Ü#Ô%Ø�‰”e˜A˜tŸz™z›|Ó,¨eÔ4Øˆr)   )Úwrap_storagerI   r   Ú	_internalc               óê  >• U(       d
  [        5         U [        R                  R                  :X  a  [	        S5      eU [
        :X  a  [        TU ]  U 5      $ U  S3nUb  [	        US-   5      eUb  [	        US-   5      eUc²  [        U5      S:”  a  [	        US-   5      e[        U5      S:X  a\  [        US   5      (       dI  [        US   [        R                  R                  5      (       d  [        US[        US   5       3-   5      e[        UU R                   [#        U R$                  5      S	S
.6$ [        U5      S:w  a  [	        US-   5      e[        U[        R&                  5      (       d  [        US[        U5       3-   5      e[#        U R$                  5      nUR(                  R                  U:w  a(  [	        USU SUR(                  R                   3-   5      e[        UUU R*                  S	S.6$ )Nz8Only child classes of _LegacyStorage can be instantiatedzœ.__new__ received an invalid combination of arguments. Expected one of:
 * no arguments
 * (int size)
 * (Sequence data)
 * (*, UntypedStorage wrap_storage)z.
Keyword argument 'device' cannot be specifiedz-
Keyword argument 'dtype' cannot be specifiedr�  ú
Too many positional argumentsr   ú
Argument type not recognized: T)rI   r   r&  úB
No positional arguments should be given when using 'wrap_storage'ú9
Argument 'wrap_storage' must be UntypedStorage, but got z"
Device of 'wrap_storage' must be z
, but got ©r%  rI   r&  )r  rP   r  Ú_LegacyStorageÚRuntimeErrorr   rú   Ú__new__rÑ   rú  r  ÚcollectionsÚabcÚSequencer  rJ   r  r  r’  r   r   rI   )	rm   r%  rI   r   r&  r$   Úarg_error_msgÚ
cls_devicerý   s	           €r&   r/  ÚTypedStorage.__new__¹  s'  ø€ ö Ü'Ô)à”%—-‘-×.Ñ.Ó.ÜØJóð ð ”,ÓÜ‘7‘? 3Ó'Ð'ð �%ð 6ð 6ð ð Ñ!Ü"Ø!Ð$UÑUóð ð Ñ Ü"Ø!Ð$TÑTóð ð Ñ#Ü�t“9˜q“=Ü&Ø%Ð(IÑIóð ô
 ˜“I “NÜ" 4¨¡7ŸO™OÜ& t¨A¡w´·±×0HÑ0H×IÑIä#Ø%Ø<¼TÀ$ÀqÁ'»]¸OÐLñMóð ô
 $ØØŸ*™*Ü2°3·>±>ÓBØ"ò	ð ô �t“9 “>Ü&Ø%ð)ñ)óð ô " ,´×0DÑ0D×EÑEÜ#Ø%ØVÔW[Ð\hÓWiÐVjÐkñlóð ô
 5°S·^±^ÓD�
à×&Ñ&×+Ñ+¨zÓ9Ü&Ø%Ø?À
¸|Ø$ \×%8Ñ%8×%=Ñ%=Ð$>ð@ñ@óð ô $ØØ!-ØŸ)™)Ø"ò	ð r)   )r   rI   r%  r&  c               óþ  • U(       d
  [        5         SnUb¾  [        U5      S:w  a  [        US-   5      eUc  [        US-   5      e[        U[        R
                  5      (       d  [        US[        U5       3-   5      eUb  [        US-   5      eX l        [        U[        R                  5      (       d  [        US[        U5       3-   5      eX0l	        g Uc  [        R                  " 5       OUU l        [        R                  " Uc  SOU5      nU R
                  [        R                  [        R                  [        R                  [        R                  [        R                   4;   a  UR                  S	:X  a  [        S
5      e[        U5      S:X  a  [        R                  " US9U l	        g [        U5      S:X  a´  [#        US   5      (       a8  [        R                  " [%        US   5      U R'                  5       -  US9U l	        g [        US   [(        R*                  R,                  5      (       a   [/        US   U R
                  U5      U l	        g [        US[        US   5       3-   5      e[        US-   5      e)Na1  TypedStorage.__init__ received an invalid combination of arguments. Expected one of:
 * (*, torch.device device, torch.dtype dtype)
 * (int size, *, torch.device device, torch.dtype dtype)
 * (Sequence data, *, torch.device device, torch.dtype dtype)
 * (*, UntypedStorage wrap_storage, torch.dtype dtype)r   r*  z#
Argument 'dtype' must be specifiedz+
Argument 'dtype' must be torch.dtype, not zG
Argument 'device' should not be specified when 'wrap_storage' is givenr+  r	  rM   ú/Cannot create CUDA storage with quantized dtyper}   r�  r)  r(  )r  rÑ   r.  r  rP   rI   r  rJ   r   rð  Úget_default_dtyper   rå  ræ  rç  rä  rã  rú  r3  rƒ  r0  r1  r2  rô  )r#   r   rI   r%  r&  r$   r3  s          r&   r'   ÚTypedStorage.__init__  s^  € ö Ü'Ô)ðEð 	ð Ñ#Ü�4‹y˜A‹~Ü"Ø!ð%ñ%óð ð ‰}Ü"Ø!Ð$JÑJóð ô ˜e¤U§[¡[×1Ñ1ÜØ!ØDÄTÈ%Ã[ÀMÐRñSóð ð
 Ñ!Ü"Ø!Ø`ñaóð ð
 ŒJä˜l¬E×,@Ñ,@×AÑAÜØ!ØRÔSWÐXdÓSeÐRfÐgñhóð ð
 %1Õ!ð 7<±mœ×0Ò0Ô2ÈˆDŒJÜ—\’\¨6©>¡%¸vÓFˆFà�z‰zÜ—‘Ü—‘Ü—‘Ü—‘Ü—‘ðó ð —;‘; &Ó(Ü&ØIóð ô �4‹y˜A‹~Ü(-×(<Ò(<ÀFÑ(K�Õ%ä�T“˜a“Ü˜$˜q™'—?‘?Ü,1×,@Ò,@Ü˜D ™G› t×'9Ñ'9Ó';Ñ;ÀFñ-�DÕ)ô    Q¡¬¯©×)AÑ)A×BÑBÜ,FØ˜Q™ §¡¨Vó-�DÕ)ô $Ø%Ø<¼TÀ$ÀqÁ'»]¸OÐLñMóð ô # =Ð3TÑ#TÓUÐUr)   c                ó\   • [        5         U R                  R                  R                  S:H  $ r²  ©r  rð  r   rJ   r-   s    r&   r«   ÚTypedStorage.is_cudap  s%   € ä#Ô%Ø×$Ñ$×+Ñ+×0Ñ0°FÑ:Ð:r)   c                ó\   • [        5         U R                  R                  R                  S:H  $ r¶  r;  r-   s    r&   r®   ÚTypedStorage.is_hpuu  s%   € ä#Ô%Ø×$Ñ$×+Ñ+×0Ñ0°EÑ9Ð9r)   c                ó.   • [        5         U R                  $ )z2Return the internal :class:`torch.UntypedStorage`.)r  rð  r-   s    r&   r}  ÚTypedStorage.untypedz  s   € ä#Ô%Ø×$Ñ$Ð$r)   c           	     ó  • [        U5      [        R                  La!  [        S[        U5      R                   35      e[        U 5      [
        L a"  [        [        [        XR                  SS95      $ [        U 5      " US9$ )Nzexpected UntypedStorage, got Tr,  ©r%  )	rJ   rP   r   r¡  r‘  r   r   r   rI   )r#   rk  s     r&   Ú_new_wrapped_storageÚ!TypedStorage._new_wrapped_storage  sx   € Ü�Ó ¬×(<Ñ(<Ò<Ü Ø/´°_Ó0E×0NÑ0NÐ/OÐPóð ô �‹:œÒ%ÜÜÜØ!0¿
¹
Èdñóð ô ˜”:¨?Ñ;Ð;r)   c                ó6   • [        5         U R                  5       $ r    ©r  r!  r-   s    r&   r.   ÚTypedStorage.__len__�  ó   € Ü#Ô%Ø�z‰z‹|Ðr)   c                ó   • Uc  U(       a  U R                  5       $ g[        U5      [        La#  [        S[        U 5       S[        U5       35      eU(       a`  XR                  5       :”  d  XR                  5       * :  a  [	        SU SU R                  5        35      eUS:”  a  U$ XR                  5       -  $ XR                  5       :¼  d  XR                  5       * :  a  [	        SU SU R                  5        35      eXR                  5       -  $ )Nr   úcan't index a ú with zindex z" out of range for storage of size )r!  rJ   r3  r  Ú
IndexErrorrF   )r#   r3   Úis_stops      r&   Ú_maybe_wrap_indexÚTypedStorage._maybe_wrap_index“  sò   € Ø‰;ÞØ—z‘z“|Ð#àô �C‹y¤Ò#Ü .´°d³°¸FÄ4ÈÃ9À+Ð NÓOÐOÞØŸ*™*›,Ó&¨C·:±:³<°-Ó,?Ü$Ø   Ð%GÈÏ	É	ËÀ}ÐUóð ð ˜“7Ø�Jà§¡£Ñ-Ð-àŸ:™:›<Ó'¨S·J±J³L°=Ó-@Ü$Ø   Ð%GÈÏ	É	ËÀ}ÐUóð ð ŸZ™Z›\Ñ)Ð)r)   c                ó8   • [        5         U R                  X5      $ r    )r  r  )r#   r3   r"  s      r&   r7   ÚTypedStorage.__setitem__­  s   € Ü#Ô%Ø�}‰}˜SÓ(Ð(r)   c           
     ó  • [        U[        [        45      (       d#  [        S[	        U 5       S[	        U5       35      e[
        R                  " U5      (       a  [        S[	        U5       35      eU R                  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  4;   aô  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  [
        R                  0nX0R                     n[
        R                   " / X@R"                  R$                  S9nUR'                  [)        U R"                  USS95        OC[
        R                   " / U R                  U R"                  R$                  S9R'                  U 5      nX%U'   g )NrJ  rK  z cannot set item with value type r  Tr,  )r  r3  r   r.  rJ   rP   Ú
is_storagerI   rå  ræ  rç  rä  rã  r  rï  r;  r  rð  r   r  r   )r#   r3   r"  rò  Ú	tmp_dtyperó  s         r&   r  ÚTypedStorage._setitem±  sg  € Ü˜#¤¤U˜|×,Ñ,Ü ´°T³
¨|¸6Ä$ÀsÃ)ÀÐMÓNÐNÜ×Ò˜E×"Ñ"ÜÐ!AÄ$ÀuÃ+ÀÐOÓPÐPØ�:‰:Ü�L‰LÜ�N‰NÜ�N‰NÜ�L‰LÜ�K‰Kð
ó 
ô —‘œeŸk™kÜ—‘¤§¡Ü—‘¤§¡Ü—‘œeŸk™kÜ—‘œUŸZ™Zð Ðð )¯©Ñ4ˆIÜŸšØ˜)×,AÑ,A×,HÑ,HñˆJð �O‰OÜØ!%×!6Ñ!6¸iÐSWñõô ŸšØ˜$Ÿ*™*¨T×-BÑ-B×-IÑ-Iñç‰d�4‹jð ð  �3Šr)   c                ó8   • [        5         U R                  U5      $ r    )r  Ú_getitemr2   s     r&   r4   ÚTypedStorage.__getitem__Ô  s   € Ü#Ô%Ø�}‰}˜SÓ!Ð!r)   c           
     ór  • U R                   R                  R                  S:X  a  [        S5      e[	        U[
        5      (       a  [        S5      e[	        U[        5      (       d#  [        S[        U 5       S[        U5       35      eU R                  [        R                  [        R                  [        R                  [        R                  [        R                  4;   aÈ  [        R                  [        R                  [        R                  [        R                  [        R                  [        R                  [        R                  [        R                   [        R                  [        R"                  0n[%        U R                   X R                     SS9R'                  U5      $ U R)                  U5      nSS	KJn  U" 5          [        R.                  " / U R                  U R                   R                  S
9R1                  U 5      nXS   R3                  5       sS S S 5        $ ! , (       d  f       g = f)NrÂ   r®  z7slices are only supported in UntypedStorage.__getitem__rJ  rK  Tr,  r   )Úunset_fake_temporarilyr  )rð  r   rJ   r,   r  r   r.  r3  rI   rP   rå  ræ  rç  rä  rã  r  rï  r;  r   rW  rN  Útorch._subclasses.fake_tensorrZ  r  r  Úitem)r#   r3   rò  Úidx_wrappedrZ  ró  s         r&   rW  ÚTypedStorage._getitemØ  sŽ  € Ø× Ñ ×'Ñ'×,Ñ,°Ó6Ü%Ð&LÓMÐMô �cœ5×!Ñ!ÜØIóð ô ˜C¤×%Ñ%Ü ´°T³
¨|¸6Ä$ÀsÃ)ÀÐMÓNÐNà�:‰:Ü�L‰LÜ�N‰NÜ�N‰NÜ�L‰LÜ�K‰Kð
ó 
ô —‘œeŸk™kÜ—‘¤§¡Ü—‘¤§¡Ü—‘œeŸk™kÜ—‘œUŸZ™Zð Ðô  Ø!×2Ñ2Ø&§z¡zÑ2Øñ÷ ‰h�s‹mð	ð ×,Ñ,¨SÓ1ˆÝHá#Õ%ÜŸšØ˜$Ÿ*™*¨T×-BÑ-B×-IÑ-Iñç‰d�4‹jð ð Ñ*×/Ñ/Ó1÷	 &×%×%ús   Ç	AH(È(
H6c                óÊ   • [        5         [        U[        5      (       a(  U R                  R	                  UR                  U5        U $ U R                  R	                  X5        U $ r    )r  r  r   rð  r=   r:   s      r&   r=   ÚTypedStorage.copy_  sS   € Ü#Ô%Ü�fœl×+Ñ+Ø×!Ñ!×'Ñ'¨×(?Ñ(?ÀÔNð ˆð ×!Ñ!×'Ñ'¨Ô=Øˆr)   c                ó6   • [        5         U R                  5       $ r    )r  Ú_nbytesr-   s    r&   rC   ÚTypedStorage.nbytes  s   € Ü#Ô%Ø�|‰|‹~Ðr)   c                ó6   • U R                   R                  5       $ r    )rð  rC   r-   s    r&   rb  ÚTypedStorage._nbytes  s   € Ø×$Ñ$×+Ñ+Ó-Ð-r)   c                ó  • [        5         Uc_  U R                  5       nUb  UR                  S-   UR                  -   $ SR	                  U R                  [        U 5      R                  /5      $ U R                  R                  X5      $ )Nr  )r  Ú_get_legacy_storage_classr’  r‘  rÒ   rJ   rð  )r#   rI   r<   Úlegacy_classs       r&   rJ   ÚTypedStorage.type  sz   € ô
 	$Ô%Ø‰=Ø×9Ñ9Ó;ˆLàÑ'Ø#×.Ñ.°Ñ4°|×7LÑ7LÑLÐLà—8‘8˜TŸ_™_¬d°4«j×.AÑ.AÐBÓCÐCð ×(Ñ(×-Ñ-¨eÓBÐBr)   c                ó:  • [        5         U R                  [        R                  [        R                  [        R
                  [        R                  [        R                  4;   a  [        S5      eU R                  R                  X5      nU R                  U5      $ )Nr7  )r  rI   rP   rå  ræ  rç  rä  rã  r.  rð  rM   rC  )r#   r   r<   Úcuda_storages       r&   rM   ÚTypedStorage.cuda%  sq   € Ü#Ô%Ø�:‰:Ü�L‰LÜ�N‰NÜ�N‰NÜ�L‰LÜ�K‰Kð
ó 
ô ÐPÓQÐQØ×,Ñ,×1Ñ1°&ÓGˆØ×(Ñ(¨Ó6Ð6r)   c                ó:  • [        5         U R                  [        R                  [        R                  [        R
                  [        R                  [        R                  4;   a  [        S5      eU R                  R                  X5      nU R                  U5      $ )Nz.Cannot create HPU storage with quantized dtype)r  rI   rP   rå  ræ  rç  rä  rã  r.  rð  rV   rC  )r#   r   r<   Úhpu_storages       r&   rV   ÚTypedStorage.hpu2  sq   € Ü#Ô%Ø�:‰:Ü�L‰LÜ�N‰NÜ�N‰NÜ�L‰LÜ�K‰Kð
ó 
ô ÐOÓPÐPØ×+Ñ+×/Ñ/°ÓEˆØ×(Ñ(¨Ó5Ð5r)   r  c               óØ  • [        5         [        U[        R                  5      (       d  [        R                  " U5      nU R                  [        R
                  [        R                  [        R                  [        R                  [        R                  4;   a'  [        SUR                  R                  5        S35      eU R                  R                  XS9nU R                  U5      $ )NzCannot create z storage with quantized dtyperN   )r  r  rP   r   rI   rå  ræ  rç  rä  rã  r.  rJ   Úupperrð  rQ   rC  )r#   r   r<   Ú
to_storages       r&   rQ   ÚTypedStorage.to?  s±   € Ü#Ô%Ü˜&¤%§,¡,×/Ñ/Ü—\’\ &Ó)ˆFØ�:‰:Ü�L‰LÜ�N‰NÜ�N‰NÜ�L‰LÜ�K‰Kð
ó 
ô Ø  §¡×!2Ñ!2Ó!4Ð 5Ð5RÐSóð ð ×*Ñ*×-Ñ-°VÐ-ÐWˆ
Ø×(Ñ(¨Ó4Ð4r)   c                ó6   • [        5         U R                  5       $ r    )r  rƒ  r-   s    r&   rY   ÚTypedStorage.element_sizeP  s   € Ü#Ô%Ø×!Ñ!Ó#Ð#r)   c                óT   • [         R                  R                  U R                  5      $ r    )rP   r‚  rƒ  rI   r-   s    r&   rƒ  ÚTypedStorage._element_sizeU  s   € Ü�|‰|×)Ñ)¨$¯*©*Ó5Ð5r)   c                óJ   • [        5         U R                  R                  5       $ r    )r  rð  r]   r-   s    r&   r]   ÚTypedStorage.get_deviceX  s   € Ü#Ô%Ø×$Ñ$×/Ñ/Ó1Ð1r)   c           
     óP  ^ • [        5         S[        R                  " T 5       ST R                   ST R                   S[        T 5       S3	nT R                  R                  S:X  a  SU-   $ SS	R                  U 4S
 j[        T R                  5       5       5       5      -   nUS-   U-   $ )Nr¿   z(dtype=z	, device=rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   c              3  ó@   >#   • U  H  n[        TU   5      v •  M     g 7fr    rÇ   rÉ   s     €r&   rÌ   Ú'TypedStorage.__str__.<locals>.<genexpr>e  s   øé € Ð'QÒ>P¸¬¨D°©G¯¨Ò>PùrÎ   rÏ   )
r  rP   rÐ   rI   r   rÑ   rJ   rÒ   rÓ   rF   rÔ   s   `  r&   Ú__str__ÚTypedStorage.__str__\  sš   ø€ Ü#Ô%à”—’˜tÓ$Ð% W¨T¯Z©Z¨Lð 9Ø—k‘k�] *¬S°«Y¨K°qð:ð 	ð �;‰;×Ñ˜vÓ%Ø˜XÑ%Ð%à˜UŸZ™ZÔ'Q¼eÀDÇIÁIÃKÔ>PÓ'QÓQÑQˆHØ˜d‘? XÑ-Ð-r)   c                ó,   • [        5         [        U 5      $ r    )r  rÈ   r-   s    r&   r×   ÚTypedStorage.__repr__h  s   € Ü#Ô%Ü�4‹yÐr)   c                óp   ^ • [        5         [        U 4S j[        T R                  5       5       5       5      $ )Nc              3  ó.   >#   • U  H
  nTU   v •  M     g 7fr    r!   rÉ   s     €r&   rÌ   Ú(TypedStorage.__iter__.<locals>.<genexpr>n  rÜ   rÝ   )r  rÞ   rÓ   rF   r-   s   `r&   rß   ÚTypedStorage.__iter__l  s%   ø€ Ü#Ô%ÜÔ8¤U¨4¯9©9«;Ô%7Ó8Ó8Ð8r)   c                ót   • [        5         U R                  [        R                  " U R                  5      5      $ r    )r  rC  Úcopyrð  r-   s    r&   rã   ÚTypedStorage.__copy__p  s(   € Ü#Ô%Ø×(Ñ(¬¯ª°4×3HÑ3HÓ)IÓJÐJr)   c                ó8   • [        5         U R                  U5      $ r    )r  Ú	_deepcopy©r#   rç   s     r&   ré   ÚTypedStorage.__deepcopy__t  s   € Ü#Ô%Ø�~‰~˜dÓ#Ð#r)   c                ób   • U R                  [        R                  " U R                  U5      5      $ r    )rC  r†  Údeepcopyrð  rŠ  s     r&   r‰  ÚTypedStorage._deepcopyy  s$   € Ø×(Ñ(¬¯ª°t×7LÑ7LÈdÓ)SÓTÐTr)   c                óV   >• [        5         [        TU ]	  5       U R                  5       -   $ r    )r  rú   rû   rC   rü   s    €r&   rû   ÚTypedStorage.__sizeof__|  s"   ø€ Ü#Ô%Ü‰wÑ!Ó# d§k¡k£mÑ3Ð3r)   c                óh   • [        5         U R                  U R                  R                  5       5      $ )r   )r  rC  rð  râ   r-   s    r&   râ   ÚTypedStorage.clone€  s(   € ä#Ô%Ø×(Ñ(¨×)>Ñ)>×)DÑ)DÓ)FÓGÐGr)   c                ó,   • [        5         [        U 5      $ r  )r  r  r-   s    r&   r  ÚTypedStorage.tolist…  s   € ä#Ô%Ü�D‹zÐr)   c                óh   • [        5         U R                  U R                  R                  5       5      $ )r  )r  rC  rð  r	  r-   s    r&   r	  ÚTypedStorage.cpuŠ  s(   € ä#Ô%Ø×(Ñ(¨×)>Ñ)>×)BÑ)BÓ)DÓEÐEr)   c                óL   • [        5         U R                  R                  U5      $ )a  Determine whether the CPU TypedStorage is already pinned on device.

Args:
    device (str or torch.device): The device to pin memory on (default: ``'cuda'``).
        This argument is discouraged and subject to deprecated.

Returns:
    A boolean variable.
)r  rð  rf  rg  s     r&   rf  ÚTypedStorage.is_pinned�  s!   € ô 	$Ô%Ø×$Ñ$×.Ñ.¨vÓ6Ð6r)   c                óf   • [        5         U R                  U R                  R                  US95      $ )a  Copy the CPU TypedStorage to pinned memory, if it's not already pinned.

Args:
    device (str or torch.device): The device to pin memory on (default: ``'cuda'``).
        This argument is discouraged and subject to deprecated.

Returns:
    A pinned CPU storage.
r}   )r  rC  rð  rj  rg  s     r&   rj  ÚTypedStorage.pin_memoryœ  s4   € ô 	$Ô%Ø×(Ñ(Ø×!Ñ!×,Ñ,°FÐ,Ð;ó
ð 	
r)   c                ó6   • [        5         U R                  5       $ )ro  )r  Ú_share_memory_r-   s    r&   rv  ÚTypedStorage.share_memory_«  s   € ä#Ô%Ø×"Ñ"Ó$Ð$r)   c                ó:   • U R                   R                  5         U $ r    )rð  rv  r-   s    r&   rœ  ÚTypedStorage._share_memory_±  s   € Ø×Ñ×+Ñ+Ô-Øˆr)   r}   c               ó¼   • Uc  Sn[         R                  " U5      n[         R                  R                  XR	                  5       -  US9n[        X0R                  SS9$ )ry  r	  r}   Tr,  )rP   r   r   rz  rƒ  r   rI   )r#   rF   r   rk  s       r&   rz  ÚTypedStorage._new_sharedµ  s^   € à‰>ØˆFÜ—’˜fÓ%ˆÜ×.Ñ.×:Ñ:Ø×%Ñ%Ó'Ñ'°ð ;ð 
ˆô Ø(·
±
Àdñ
ð 	
r)   c                ó.   • U R                   R                  $ r    )rð  r   r-   s    r&   r   ÚTypedStorage._cdataÁ  s   € à×$Ñ$×+Ñ+Ð+r)   c                óB   • [        5         U R                  R                  $ r    )r  rð  r   r-   s    r&   r   ÚTypedStorage.deviceÅ  s   € ä#Ô%Ø×$Ñ$×+Ñ+Ð+r)   c                ó6   • [        5         U R                  5       $ r    rF  r-   s    r&   rF   ÚTypedStorage.sizeÊ  rH  r)   c                óX   • U R                   R                  5       U R                  5       -  $ r    )rð  rC   rƒ  r-   s    r&   r!  ÚTypedStorage._sizeÏ  s'   € ð ×$Ñ$×+Ñ+Ó-°×1CÑ1CÓ1EÑEÐEr)   c                ó6   • [        5         U R                  5       $ r    )r  Ú_pickle_storage_typer-   s    r&   Úpickle_storage_typeÚ TypedStorage.pickle_storage_typeÔ  s   € Ü#Ô%Ø×(Ñ(Ó*Ð*r)   c                óŠ   •  [        5       U R                     $ ! [         a  n[        SU R                   S35      UeS nAff = f)Nzdtype z is not recognized)rè  rI   ÚKeyError)r#   Úes     r&   r«  Ú!TypedStorage._pickle_storage_typeÙ  sG   € ð	KÜ-Ó/°·
±
Ñ;Ð;øÜó 	KÜ˜V D§J¡J <Ð/AÐBÓCÈÐJûð	Kús   ‚ ™
A£=½Ac                ó„   • [         R                  " 5       n[        R                  " XSS9  [        UR                  5       44$ rì   rî   rô   s     r&   rö   ÚTypedStorage.__reduce__ß  rø   r)   c                ó6   • [        5         U R                  5       $ r    )r  Ú	_data_ptrr-   s    r&   r`   ÚTypedStorage.data_pträ  s   € Ü#Ô%Ø�~‰~ÓÐr)   c                ó6   • U R                   R                  5       $ r    )rð  r`   r-   s    r&   rµ  ÚTypedStorage._data_ptré  s   € Ø×$Ñ$×-Ñ-Ó/Ð/r)   c                óJ   • [        5         U R                  R                  5       $ r    )r  rð  rc   r-   s    r&   rc   ÚTypedStorage.resizableì  s   € Ü#Ô%Ø×$Ñ$×.Ñ.Ó0Ð0r)   c                ó:   • [        5         U R                  U5        g r    )r  Ú_resize_r�   s     r&   r�   ÚTypedStorage.resize_ð  s   € Ü#Ô%Ø�‰�dÕr)   c                óZ   • U R                   R                  XR                  5       -  5        g r    )rð  r�   rƒ  r�   s     r&   r¼  ÚTypedStorage._resize_õ  s"   € Ø×Ñ×%Ñ% d×-?Ñ-?Ó-AÑ&AÕBr)   c                ó.   • [         R                  " U0 UD6$ r    )r   r¨   ru   s      r&   r¨   ÚTypedStorage._free_weak_refø  s   € ä×,Ò,¨dÐ=°fÑ=Ð=r)   c                ó:   • U R                   R                  " U0 UD6$ r    )rð  r“   r"   s      r&   r“   ÚTypedStorage._weak_refü  s   € Ø×$Ñ$×.Ò.°Ð?¸Ñ?Ð?r)   c                ó:   • [        5         U R                  " U0 UD6$ r    )r  Ú_from_bufferru   s      r&   rv   ÚTypedStorage.from_bufferÿ  s   € ä#Ô%Ø×Ò Ð0¨Ñ0Ð0r)   r  c               óÜ  • U [         :X  a€  Uc  [        R                  " 5       OUn[        R                  " Uc  SOU5      nUR                  S:w  a  [        SUR                   35      e[        R                  R                  " USU0UD6nOYUc  [        U5      S:X  a  [        S5      eUb  [        S5      eU R                  n[        R                  R                  " USU0UD6n[        XQSS9$ )	Nr	  z3TypedStorage.from_buffer: Not available for device rI   é   zefrom_buffer: 'dtype' can only be specified in UntypedStorage.from_buffer and TypedStorage.from_bufferzffrom_buffer: 'device' can only be specified in UntypedStorage.from_buffer and TypedStorage.from_bufferTr,  )
r   rP   r8  r   rJ   r.  r   rv   rÑ   r  )rm   rI   r   r$   r%   rk  s         r&   rÅ  ÚTypedStorage._from_buffer  s  € à”,ÓØ16±”E×+Ò+Ô-ÀEˆEÜ—\’\¨6©>¡%¸vÓFˆFØ�{‰{˜eÓ#Ü"ØIÈ&Ï+É+ÈÐWóð ô 5:×4HÑ4H×4TÒ4TØð5Ø"ð5Ø&,ñ5‰Oð
 Ñ ¤C¨£I°£NÜ"ðNóð ð Ñ!Ü"ðNóð ð
 —J‘JˆEÜ#×2Ñ2×>Ò>ØðØ"ðØ&,ñˆOô ¨ÐQUÑVÐVr)   c                ó‚  • [        U[        R                  5      (       d  [        S[	        U5       35      e[        R
                  " / U R                  U R                  S9R                  U 5      R                  U5      R                  5       nUR                  5       U R                  5       :X  a  UR                  5       nU$ r  )r  rP   rI   r  rJ   r  r   r  rQ   r  r`   râ   r  s      r&   r	   ÚTypedStorage._to$  sŠ   € Ü˜%¤§¡×-Ñ-ÜÐHÌÈeËÈÐVÓWÐWä�LŠL˜ 4§:¡:°d·k±kÑBß‰T�$‹Zß‰R�‹Yß‰^Óð	 	ð ×ÑÓ §¡£Ó0Ø—m‘m“oˆGØˆr)   c                óT   • [        5         U R                  [        R                  5      $ r  )r  r	   rP   r   r-   s    r&   r   ÚTypedStorage.double1  ó   € ä#Ô%Ø�x‰xœŸ™Ó%Ð%r)   c                óT   • [        5         U R                  [        R                  5      $ r$  )r  r	   rP   r%  r-   s    r&   r%  ÚTypedStorage.float6  ó   € ä#Ô%Ø�x‰xœŸ™Ó$Ð$r)   c                óT   • [        5         U R                  [        R                  5      $ r)  )r  r	   rP   r*  r-   s    r&   r*  ÚTypedStorage.half;  ó   € ä#Ô%Ø�x‰xœŸ
™
Ó#Ð#r)   c                óT   • [        5         U R                  [        R                  5      $ r.  )r  r	   rP   r/  r-   s    r&   r/  ÚTypedStorage.long@  rÔ  r)   c                óT   • [        5         U R                  [        R                  5      $ r2  )r  r	   rP   r3  r-   s    r&   r3  ÚTypedStorage.intE  s   € ä#Ô%Ø�x‰xœŸ	™	Ó"Ð"r)   c                óT   • [        5         U R                  [        R                  5      $ r6  )r  r	   rP   r7  r-   s    r&   r7  ÚTypedStorage.shortJ  rÑ  r)   c                óT   • [        5         U R                  [        R                  5      $ r:  )r  r	   rP   r;  r-   s    r&   r<  ÚTypedStorage.charO  rÔ  r)   c                óT   • [        5         U R                  [        R                  5      $ r?  )r  r	   rP   r  r-   s    r&   r@  ÚTypedStorage.byteT  rÑ  r)   c                óT   • [        5         U R                  [        R                  5      $ rC  )r  r	   rP   rD  r-   s    r&   rD  ÚTypedStorage.boolY  rÔ  r)   c                óT   • [        5         U R                  [        R                  5      $ rG  )r  r	   rP   rH  r-   s    r&   rH  ÚTypedStorage.bfloat16^  s   € ä#Ô%Ø�x‰xœŸ™Ó'Ð'r)   c                óT   • [        5         U R                  [        R                  5      $ rK  )r  r	   rP   rL  r-   s    r&   rM  ÚTypedStorage.complex_doublec  s   € ä#Ô%Ø�x‰xœŸ™Ó&Ð&r)   c                óT   • [        5         U R                  [        R                  5      $ rP  )r  r	   rP   rQ  r-   s    r&   rR  ÚTypedStorage.complex_floath  rÎ  r)   c                óT   • [        5         U R                  [        R                  5      $ rU  )r  r	   rP   rV  r-   s    r&   rV  ÚTypedStorage.float8_e5m2m  s   € ä#Ô%Ø�x‰xœ×)Ñ)Ó*Ð*r)   c                óT   • [        5         U R                  [        R                  5      $ rY  )r  r	   rP   rZ  r-   s    r&   rZ  ÚTypedStorage.float8_e4m3fnr  s   € ä#Ô%Ø�x‰xœ×+Ñ+Ó,Ð,r)   c                óT   • [        5         U R                  [        R                  5      $ r]  )r  r	   rP   r^  r-   s    r&   r^  ÚTypedStorage.float8_e5m2fnuzw  ó   € ä#Ô%Ø�x‰xœ×-Ñ-Ó.Ð.r)   c                óT   • [        5         U R                  [        R                  5      $ rb  )r  r	   rP   rc  r-   s    r&   rc  ÚTypedStorage.float8_e4m3fnuz|  rí  r)   c                óÐ   • [        5         U [        :X  a  [        S5      e[        R	                  XU[
        R                  R                  U R                  5      -  5      nU " US9nU$ )aJ  from_file(filename, shared=False, size=0) -> Storage

Creates a CPU storage backed by a memory-mapped file.

If ``shared`` is ``True``, then memory is shared between all processes.
All changes are written to the file. If ``shared`` is ``False``, then the changes on
the storage do not affect the file.

``size`` is the number of elements in the storage. If ``shared`` is ``False``,
then the file must contain at least ``size * sizeof(Type)`` bytes
(``Type`` is the type of storage). If ``shared`` is ``True`` the file will be created if needed.

Args:
    filename (str): file name to map
    shared (bool): whether to share memory (whether ``MAP_SHARED`` or ``MAP_PRIVATE`` is passed to the
                    underlying `mmap(2) call <https://man7.org/linux/man-pages/man2/mmap.2.html>`_)
    size (int): number of elements in the storage
z/from_file can only be called on derived classesrB  )	r  r   r.  r   r³   rP   r‚  rƒ  rI   )rm   r±   r²   rF   rk  r  s         r&   r³   ÚTypedStorage.from_file�  s\   € ô( 	$Ô%Ø”,ÓÜÐPÓQÐQÜ(×2Ñ2Ø˜d¤U§\¡\×%?Ñ%?ÀÇ	Á	Ó%JÑJó
ˆñ  ?Ñ3ˆØˆr)   c                ó.   • [         R                  " U0 UD6$ r    )r   r¶   ru   s      r&   r¶   ÚTypedStorage._expiredž  s   € ä×&Ò&¨Ð7°Ñ7Ð7r)   c                ó:   • U R                   R                  " U0 UD6$ r    )rð  rŒ   r"   s      r&   rŒ   ÚTypedStorage._write_file¢  s   € Ø×$Ñ$×0Ò0°$ÐA¸&ÑAÐAr)   c                ó:   • U R                   R                  " U0 UD6$ r    )rð  r–   r"   s      r&   r–   ÚTypedStorage._set_from_file¥  ó   € Ø×$Ñ$×3Ò3°TÐD¸VÑDÐDr)   c                ó:   • U R                   R                  " U0 UD6$ r    )rð  r™   r"   s      r&   r™   ÚTypedStorage._set_cdata¨  s   € Ø×$Ñ$×/Ò/°Ð@¸Ñ@Ð@r)   c                ó:   • U R                   R                  " U0 UD6$ r    )rð  rœ   r"   s      r&   rœ   ÚTypedStorage._share_cuda_«  s   € Ø×$Ñ$×1Ò1°4ÐB¸6ÑBÐBr)   c                ó6   • [        5         U R                  5       $ r    )r  Ú
_is_sharedr-   s    r&   rŸ   ÚTypedStorage.is_shared®  s   € Ü#Ô%Ø�‰Ó Ð r)   c                ó6   • U R                   R                  5       $ r    )rð  rŸ   r-   s    r&   rþ  ÚTypedStorage._is_shared³  s   € Ø×$Ñ$×.Ñ.Ó0Ð0r)   c                óB   • [         R                  R                  " U0 UD6$ r    )rP   r   r¢   ru   s      r&   r¢   ÚTypedStorage._new_shared_cuda¶  s   € ä×#Ñ#×4Ò4°dÐE¸fÑEÐEr)   c                ój   • U R                   R                  " U0 UD6u  nnnX4XPR                  5       -  4$ r    )rð  rf   rƒ  )r#   r$   r%   Úmanager_handleÚstorage_handlerF   s         r&   rf   Ú!TypedStorage._share_filename_cpu_º  sB   € ð
 ×!Ñ!×6Ò6¸ÐGÀÑGñ		
ØØØà¨t×7IÑ7IÓ7KÑ/KÐKÐKr)   c                ó:   • U R                   R                  5         U $ r    )rð  r‰   r-   s    r&   r‰   ÚTypedStorage._shared_decrefÂ  s   € Ø×Ñ×,Ñ,Ô.Øˆr)   c               óB   • [         R                  R                  " U0 UD6$ r    ©rP   r   r   r€   s       r&   r�   Ú!TypedStorage._release_ipc_counterÆ  ó   € ä×#Ñ#×=Ò=¸tÐNÀvÑNÐNr)   c                ó:   • U R                   R                  " U0 UD6$ r    )rð  r¥   r"   s      r&   r¥   ÚTypedStorage._shared_increfÊ  rø  r)   c                óf   • U R                   R                  " U0 UD6u  p4X4U R                  5       -  4$ r    )rð  ri   rƒ  )r#   r$   r%   ÚfdrF   s        r&   ri   ÚTypedStorage._share_fd_cpu_Í  s6   € Ø×(Ñ(×7Ò7¸ÐHÀÑH‰ˆØ˜4×-Ñ-Ó/Ñ/Ð/Ð/r)   c                ó˜  • U R                   [        5       ;  a  g [        5       U R                      nU R                  R                  SSS[        R
                  R                  5       4;  a  g U R                  R                  S:X  a  [        O#[        [        U R                  R                  5      n [        X!5      $ ! [         a     g f = f)Nr	  rM   rV   )	rI   rè  r   rJ   rP   rt  ru  ÚgetattrÚAttributeError)r#   Ústorage_namer  s      r&   rg  Ú&TypedStorage._get_legacy_storage_classÑ  s«   € Ø�:‰:Ô7Ó9Ó9Øä1Ó3°D·J±JÑ?ˆà�;‰;×ÑØØØÜ�H‰H×2Ñ2Ó4ð	$
ó 
ð ð —[‘[×%Ñ%¨Ó.�E´G¼EÀ4Ç;Á;×CSÑCSÓ4Tð 	ð	Ü˜6Ó0Ð0øÜó 	Ùð	ús   Â1
B< Â<
C	ÃC	)rð  rI   rŽ  r�  )Fr    )r;   r   r<   zbool | Noner‹  )rI   rŒ  r<   rD  rŠ  z!_StorageBase | TypedStorage | str)r   r   r<   rD  rŠ  r   r‰  r�  r�  )cr‘  r’  r“  r”  r   r•  r   r—  r  r±   r#  r/  r'   r«   r®   r}  rC  r.   rN  r7   r  r4   rW  r=   rC   rb  rJ   rM   rV   rQ   rY   rƒ  r]   r}  r×   rß   rã   ré   r‰  rû   râ   r  r	  rf  rj  rv  rœ  rz  r   r   rF   r!  r¬  r«  rö   r`   rµ  rc   r�   r¼  r–  r¨   r“   rv   rÅ  r	   r   r%  r*  r/  r3  r7  r<  r@  rD  rH  rM  rR  rV  rZ  r^  rc  r³   r¶   rŒ   r–   r™   rœ   rŸ   rþ  r¢   rf   r‰   r�   r¥   ri   rg  r˜  r™  rš  s   @r&   r   r   £  s  ø‡ Ø€IˆuÓà(,€LÐ%Ó,àÓàñó ðð ó.ó ð.ò
ð ØØØ÷Zð Zð~ ØØØõYVðv ñ;ó ð;ð ñ:ó ð:ò%ô
<ò ô*ò4)ò! òF"ò*2öXòò
.ð
 !Ø"ðCàðCð ðCð 
+õ	Cö"7ö6ð BG÷ 5ò"$ò
6ô2ò
.òò9òKò$ò
Uõ4òHò
ò
Fö
7ö
ò%òð +/õ 

ð ñ,ó ð,ð ñ,ó ð,òò
Fò
+ò
Kò3ò
 ò
0ò1òò
Cð ñ>ó ð>ò@ð ñ1ó ð1ð Ø'+°Dô Wó ðWò>ò&ò
%ò
$ò
$ò
#ò
%ò
$ò
%ò
$ò
(ò
'ò
&ò
+ò
-ò
/ò
/ð
 ñó ðð8 ñ8ó ð8òBòEòAòCò!ò
1ð ñFó ðFòLòð Ø04ô Oó ðOòEò0÷ð r)   c                  ó&   • \ rS rSr% S\S'   S rSrg)Ú_LegacyStorageMetaiï  r  rI   c                óÂ   • [        U5      [        L aM  [        U R                  5      nX!R                  R                   :H  =(       a    U R
                  UR
                  :H  $ gr‹  )rJ   r   r  r’  r   rI   )rm   Úinstancer4  s      r&   Ú__instancecheck__Ú$_LegacyStorageMeta.__instancecheck__ò  sK   € Ü�‹>œ\Ò)Ü0°·±Ó@ˆJØ§/¡/×"6Ñ"6Ñ6÷ Ø—	‘	˜XŸ^™^Ñ+ðð r)   r!   N)r‘  r’  r“  r”  r•  r  r˜  r!   r)   r&   r  r  ï  s   ‡ ØÓõr)   r  c                  óD   • \ rS rSr\S 5       r\S 5       r\S 5       rSrg)r-  iû  c                óv   • [         R                  R                  X" 5       R                  5       -  5      nU " US9$ )ry  rB  )rP   r   rz  rƒ  )rm   rF   rk  s      r&   rz  Ú_LegacyStorage._new_sharedü  s5   € ô  ×.Ñ.×:Ñ:¸4À#Ã%×BUÑBUÓBWÑ;WÓXˆÙ Ñ0Ð0r)   c                óB   • [         R                  R                  " U0 UD6$ r    r  ru   s      r&   r�   Ú#_LegacyStorage._release_ipc_counter  r  r)   c                ó¢   • U[         R                  R                  U R                  5      -  nU " [         R                  R                  XU5      S9$ )NrB  )rP   r‚  rƒ  rI   r   r{   )rm   ry   rz   rF   Ú
bytes_sizes        r&   Ú_new_shared_filenameÚ#_LegacyStorage._new_shared_filename  sE   € àœEŸL™L×6Ñ6°s·y±yÓAÑAˆ
ÙÜ×-Ñ-×FÑFØ˜jóñ
ð 	
r)   r!   N)	r‘  r’  r“  r”  r–  rz  r�   r%  r˜  r!   r)   r&   r-  r-  û  s>   † Øñ1ó ð1ð
 ñOó ðOð ñ
ó ó
r)   r-  )Ú	metaclassc                ób   •  [        5       U    $ ! [         a  n[        SU  S35      UeS nAff = f)Nzpickle storage type "z" is not recognized)rí  r¯  )r¬  r°  s     r&   Ú#_get_dtype_from_pickle_storage_typer)    sE   € ðÜ)Ó+Ð,?Ñ@Ð@øÜó ÜØ#Ð$7Ð#8Ð8KÐLó
àð	ûðús   ‚ �
.™)©.)r€  )r  rÈ   )r¬  rÈ   )>Ú
__future__r   r0  r†  r©  rï   rž  r
  Útypingr   r   r   r   Útyping_extensionsr   rP   Útorch._utilsr	   r
   Útorch.typesr   r   r   Útorch._prims_commonr   Ú__all__Únumpyr÷  rö  ÚModuleNotFoundErrorÚLockr�  r   r•  r   r   r«  rt  ÚStorageBaser   rò   ÚcacherÏ  rè  rí  rô  rú  rü  rý  r   r  r  r  r   Ú__doc__rJ   rM   rV   rQ   r  r-  r)  r!   r)   r&   Ú<module>r7     sÃ  ðö #ã Û Û Û 	Û Û ß 4Ó 4Ý "ã ß #ß ,Ñ ,ö Ý2ð Ð+Ð
,€ðÛà€Ið —^’^Ó%Ð Ø02Ð Ð-Ó 2áˆCÐ4Ñ5€÷@"ñ @"òF$ôN@=�U—X‘X×)Ñ)¨<ô @=òF9ð ‡�ñó ðð, ‡�ñó ðð6 ‡�ñó ðò
8ò2"ð &+Ð "ò.ò5ôBò(?ô÷Cñ CðL "ŸM™M€× Ñ Ô Ø(×-Ñ-×5Ñ5€× Ñ Ô Ø'×+Ñ+×3Ñ3€× Ñ Ô ØŸ+™+€‡�Ô ô	˜ô 	ô
�\Ð-?ò 
õ*øðe/ ó Ø€IØ	ƒBðús   ÁF% Æ%
F3Æ2F3