Ë
    g^(h›  ã                   ó„  — U d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl	m
Z
 d dlmZmZmZmZmZ d dlmZmZ d dlZdud„Zdvd„Zd„ Zd	„ Zd
„ Zd„ Zd„ Zd„ Z	 dwd„Z	 dwd„Zg Ze d   e!d<   d„ Z"d„ Z#d„ Z$d„ Z%d„ Z&e&Z'd„ Z(d„ Z)d„ Z*d„ Z+d„ Z,d„ Z-d„ Z.d„ Z/d„ Z0d „ Z1d!„ Z2d"„ Z3d#„ Z4d$„ Z5d%„ Z6d&„ Z7 G d'„ d(e8«      Z9 G d)„ d*«      Z:d+„ Z;d,„ Z<d-„ Z=d.„ Z>d/„ Z?d0e@fd1„ZA	 	 dxd2ed3eBd4eBd0e@fd5„ZCd6„ ZDd7„ ZE G d8„ d9«      ZFd:„ ZGer ed;eH¬<«      d0eBfd=„«       ZInd0eBfd>„ZId?„ ZJ ej–                  d@«      dAe8fdB„«       ZLdCe8d0eMfdD„ZN G dE„ dF«      ZO ej                   eQ«      ZR edG«      ZS G dH„ dIeeS   «      ZTdJe8d0ee
   fdK„ZUdLdMdNdOdPdQdQdQdRdSdSdTœZVi dUdV“dWdX“dYdZ“d[d\“d]d^“d_d`“dadb“dcdd“dedf“dgdh“didj“dkdl“dmdn“dodp“dqd^“drds“dtdl“ZWy)yé    N)Údefaultdict)Ú
ModuleType)ÚAnyÚCallableÚGenericÚOptionalÚTYPE_CHECKING)Ú
deprecatedÚ	ParamSpecc                 óÔ  — t        d||«      }|€&| j                  dz   | j                  j                  z   S t	        |t
        «      rt        |«      }|t        | «      k(  r| S | j                  rÀ|j                  st        d«      ‚|j                  j                  dd«      }|dz   |j                  z   }t        j                  j                  | «      j                  ||«      }|dz   }t        j                  j                  | «      j                  ||«      } |||| j                  «       «      S |j                  rt        d«      ‚ || j                  «       «      j!                  | |«      S )a©  Returns the type if `dtype` is not provided, else casts this object to
    the specified type.

    If this is already of the correct type, no copy is performed and the
    original object is returned.

    Args:
        dtype (type or string): The desired type
        non_blocking (bool): If ``True``, and the source is in pinned memory
            and destination is on the GPU or vice versa, the copy is performed
            asynchronously with respect to the host. Otherwise, the argument
            has no effect.
        **kwargs: For compatibility, may contain the key ``async`` in place of
            the ``non_blocking`` argument. The ``async`` arg is deprecated.
    Útypeú.z)Cannot cast sparse tensor to dense tensorz.sparseÚ z.LongTensorz)Cannot cast dense tensor to sparse tensor)Ú_get_async_or_non_blockingÚ
__module__Ú	__class__Ú__name__Ú
isinstanceÚstrÚ_import_dotted_namer   Ú	is_sparseÚRuntimeErrorÚreplaceÚtorchÚTensorÚ_valuesÚ_indicesÚsizeÚcopy_)	ÚselfÚdtypeÚnon_blockingÚkwargsÚnew_module_nameÚnew_values_type_nameÚ
new_valuesÚnew_indices_type_nameÚnew_indicess	            úJ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/torch/_utils.pyÚ_typer*      s9  € ô  .¨f°lÀFÓK€LØ€}Ø�‰ Ñ$ t§~¡~×'>Ñ'>Ñ>Ð>ä�%œÔÜ# EÓ*ˆØ”�T“
ÒØˆØ‡~‚~Ø�ŠÜÐJÓKÐKØ×*Ñ*×2Ñ2°9¸bÓAˆØ.°Ñ4°u·~±~ÑEÐÜ—\‘\×)Ñ)¨$Ó/×4Ñ4Ð5IÈ<ÓXˆ
Ø /°-Ñ ?ÐÜ—l‘l×+Ñ+¨DÓ1×6Ñ6Ø! <ó
ˆñ �[ *¨d¯i©i«kÓ:Ð:Ø‡‚ÜÐFÓGÐGÙ�—‘“Ó×#Ñ# D¨,Ó7Ð7ó    c                 ó®  — | j                   |k(  r| S |j                  dk(  r‘|xr6 | j                   j                  dt        j                  j	                  «       fv }t        j
                  | j                  «       t        j                  ||¬«      j                  «       }|j                  | |«       |S t        t        |j                  d«      }|€"J |j                  j                  «       › d�«       ‚|j                  |«      5  | j                  rËt        |d«      r¿t        |j                  | j                  j                   «      } t        t        j"                  j%                  | «      |j                  «      ||«      } t        t        j"                  j'                  | «      |j                  «      ||«      } |||| j)                  «       «      cddd«       S | j                  r#J d|j                  j                  «       › d�«       ‚t        j*                  | j)                  «       |¬	«      }|j                  | |«       |cddd«       S # 1 sw Y   yxY w)
aª  Returns a copy of this object in device memory.

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

    Args:
        device (int): The destination 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.
    ÚcpuÚcuda)r!   ÚdeviceÚ
pin_memoryNz device module is not loadedÚsparsez$sparse storage is not supported for z tensors)r/   )r/   r   r   Ú_CÚ_get_privateuse1_backend_nameÚemptyÚnbytesÚuint8Úuntyped_storager   ÚgetattrÚupperr   Úhasattrr1   r   r   r   r   r   r   ÚUntypedStorage)	r    r/   r"   r0   r7   Údevice_moduleÚnew_typeÚindicesÚvaluess	            r)   Ú_tor@   9   sý  € ð ‡{�{�fÒØˆà‡{�{�eÒØ!ò 
 d§k¡k×&6Ñ&6ØÜ�H‰H×2Ñ2Ó4ð;
ð '
ˆ
ô  Ÿ+™+Ø�K‰K‹M¤§¡°VÈ
ô
ç
‰/Ó
ð 	ð 	×Ñ˜d LÔ1ØÐäœE 6§;¡;°Ó5€MØÐ$ð Ø�;‰;×ÑÓÐ
Ð;Ð<óÐ$ð 
×	Ñ	˜fÓ	%ñ #Ø�>Š>œg m°XÔ>Ü˜}×3Ñ3°T·^±^×5LÑ5LÓMˆHØG”gœeŸl™l×3Ñ3°DÓ9¸6¿;¹;ÓGØ˜óˆGð F”WœUŸ\™\×1Ñ1°$Ó7¸¿¹ÓEØ˜óˆFñ ˜G V¨T¯Y©Y«[Ó9÷#ñ #ð —~’~ð Ø6°v·{±{×7HÑ7HÓ7JÐ6KÈ8ÐTóÐ%ô $×2Ñ2°4·9±9³;ÀvÔNˆOØ×!Ñ! $¨Ô5Ø"÷!#÷ #ò #ús   ÄCIÇA'IÉIc                 óê   — |s|S t        |«      dk7  sd|vrDd}t        |j                  «       «      j                  «       }t	        |j                  | |«      «      ‚t        j                  d«       |d   S )zþReturn the non-blocking flag given the function name and kwargs.

    Args:
        function_name (str): the name of the function being used.
        non_blocking (bool): the default value.
        **kwargs (dict): the kwargs passed to the function.
    é   Úasyncz,{}() got an unexpected keyword argument '{}'z)'async' is deprecated; use 'non_blocking')ÚlenÚlistÚkeysÚpopÚ	TypeErrorÚformatÚwarningsÚwarn)Úfunction_namer"   r#   ÚmessageÚarguments        r)   r   r   j   sk   € ñ ØÐÜ
ˆ6ƒ{�aÒ˜7¨&Ñ0Ø@ˆÜ˜Ÿ™›Ó&×*Ñ*Ó,ˆÜ˜Ÿ™ }°hÓ?Ó@Ð@Ü‡M�MÐ=Ô>Ø�'‰?Ðr+   c                 ó
  — t         j                  j                  j                  }|€| S t	        |t
        «      r|j                  | | «      S t	        |t        t         j                  f«      r|S t        |«      sJ ‚t        d«      ‚)z{Return the map_location location.

    Used for rebuild functions where the tensor device is distinct from the storage
    zgCallable map_location not supported with _rebuild_wrapper_subclass or _rebuild_device_tensor_from_numpy)r   ÚserializationÚ_serialization_tlsÚmap_locationr   ÚdictÚgetr   r/   Úcallabler   )r/   rR   s     r)   Ú_get_restore_locationrV   |   s|   € ô ×&Ñ&×9Ñ9×FÑF€LØÐØˆä�l¤DÔ)Ø×#Ñ# F¨FÓ3Ð3Ü˜¤s¬E¯L©LÐ&9Ô:ØÐä˜LÔ)Ð)Ð)Üð7óð r+   c                 óª   — t        j                  d| j                  | j                  j                  ¬«      }|j                  | j                  |||«      S )N©r   ©r!   r/   )r   r4   r!   Ú_untyped_storager/   Úset_)ÚstorageÚstorage_offsetr   ÚstrideÚts        r)   Ú_rebuild_tensorr`   ¹   s?   € ä�‰�D §¡°g×6NÑ6N×6UÑ6UÔV€AØ�6‰6�'×*Ñ*¨N¸DÀ&ÓIÐIr+   c                 óx   — t        | t        j                  «      sJ ‚t        j                  j	                  | «      S ©N)r   r   r   r2   Ú_get_tensor_metadata©Útensors    r)   Úget_tensor_metadatarf   ¿   s-   € ô �fœeŸl™lÔ+Ð+Ð+Ü�8‰8×(Ñ(¨Ó0Ð0r+   c                 ó    — t        |t        «      sJ ‚t        | t        j                  «      sJ ‚t        j                  j                  | |«       y rb   )r   rS   r   r   r2   Ú_set_tensor_metadata)re   Úmetadatas     r)   Úset_tensor_metadatarj   Ç   s:   € ä�h¤Ô%Ð%Ð%Ü�fœeŸl™lÔ+Ð+Ð+Ü	‡H�H×!Ñ! &¨(Õ3r+   c                 óP  — t         j                  j                  d «      �†| j                  «       j                  �lt        | j                  «       j                  «      }t        |t         j                  «      st        j                  |«      }t        j                  |«      | _        | S rb   )	r   Ú_guardsÚdetect_fake_moder7   Ú_fake_devicerV   r   r/   Úfake_device)re   r/   s     r)   Ú_restore_device_fake_moderp   Î   sw   € Ü‡}�}×%Ñ% dÓ+Ð7Ø×!Ñ!Ó#×0Ñ0Ð<Ü*¨6×+AÑ+AÓ+C×+PÑ+PÓQˆFÜ˜f¤e§l¡lÔ3ÜŸ™ fÓ-�Ü!&§¡¨fÓ!5ˆFÔØ€Mr+   c                 óp   — t        | |||«      }||_        |rt        ||«       ||_        t	        |«      }|S rb   )r`   Úrequires_gradrj   Ú_backward_hooksrp   )r\   r]   r   r^   rr   Úbackward_hooksri   re   s           r)   Ú_rebuild_tensor_v2ru   Ø   sB   € ô ˜W n°d¸FÓC€FØ(€FÔÙÜ˜F HÔ-ð
 ,€FÔä& vÓ.€FØ€Mr+   c                 óÜ   — t        j                  d|| j                  j                  |¬«      }|j	                  | j                  |||«       |rt        ||«       ||_        t        |«      }|S )NrX   ©r!   r/   rr   )r   r4   rZ   r/   r[   rj   rs   rp   )	r\   r]   r   r^   rr   rt   r!   ri   r_   s	            r)   Ú_rebuild_tensor_v3rx   ï   sh   € ô 	�‰ØØØ×'Ñ'×.Ñ.Ø#ô		€Að ‡F�Fˆ7×#Ñ# ^°T¸6ÔBÙÜ˜A˜xÔ(Ø&€AÔÜ! !Ó$€AØ€Hr+   ztorch.TensorÚ_sparse_tensors_to_validatec                  ót  — 	 t         D �]  } | j                  t        j                  u rQt        j                  | j                  «       | j                  «       | j                  «       | j                  «       «       Œq| j                  t        j                  t        j                  t        j                  t        j                  hv r®| j                  t        j                  t        j                  hv r!| j                  «       | j                  «       }}n | j                  «       | j!                  «       }}t        j"                  ||| j%                  «       | j                  «       | j                  «       �Œit'        d| j                  › d�«      ‚ 	 t         j)                  «        y # t         j)                  «        w xY w)Nz,_validate_loaded_sparse_tensors for layout `ú`)ry   Úlayoutr   Ú
sparse_cooÚ _validate_sparse_coo_tensor_argsr   r   r   Úis_coalescedÚ
sparse_csrÚ
sparse_cscÚ
sparse_bsrÚ
sparse_bscÚcrow_indicesÚcol_indicesÚccol_indicesÚrow_indicesÚ'_validate_sparse_compressed_tensor_argsr?   ÚNotImplementedErrorÚclear)r_   Úcompressed_indicesÚplain_indicess      r)   Ú_validate_loaded_sparse_tensorsr�     sM  € ð!,Ü,ó 	ˆAØ�x‰xœ5×+Ñ+Ñ+Ü×6Ñ6Ø—J‘J“L !§)¡)£+¨q¯v©v«x¸¿¹Ó9Iõð —‘Ü× Ñ Ü× Ñ Ü× Ñ Ü× Ñ ð	ñ ð —8‘8¤× 0Ñ 0´%×2BÑ2BÐCÑCàŸ™Ó(ØŸ™›ð )6Ñ&ð Ÿ™Ó(ØŸ™›ð )6Ð&ô ×=Ñ=Ø&¨°q·x±x³zÀ1Ç6Á6Ã8ÈQÏXÉXöô *ØBÀ1Ç8Á8À*ÈAÐNóð ñ7	ô@ 	$×)Ñ)Õ+øÔ#×)Ñ)Õ+ús   ‚F	F! Æ!F7c                 óÔ  — | t         j                  k(  rOt        |«      dk(  r	|\  }}}d}n|\  }}}}t        j                  |||d|¬«      }t        j                  |«       |S | t         j                  t         j                  t         j                  t         j                  hv r9|\  }}}}t        j                  ||||| d¬«      }t        j                  |«       |S t        d| › �«      ‚)zÖ
    Rebuilds a sparse tensor from its sparse storage representation.

    Args:
        layout (str): The sparse storage layout of the tensor.
        data (tuple): The tensor's sparse storage representation.
    é   NF)Úcheck_invariantsr   )r|   r�   z$rebuilding sparse tensor for layout )r   r}   rD   Úsparse_coo_tensorry   Úappendr€   r�   r‚   rƒ   Úsparse_compressed_tensorr‰   )	r|   Údatar>   r?   r   r   Úresultr‹   rŒ   s	            r)   Ú_rebuild_sparse_tensorr–   9  sø   € ð ”×!Ñ!Ò!Üˆt‹9˜Š>à$(Ñ!ˆG�V˜TØ‰Là26Ñ/ˆG�V˜T <Ü×(Ñ(Ø�V˜T°EÈô
ˆô 	$×*Ñ*¨6Ô2Øˆà	Ü×ÑÜ×ÑÜ×ÑÜ×Ñð	ñ 
ð ;?Ñ7Ð˜M¨6°4Ü×/Ñ/ØØØØØØ"ô
ˆô 	$×*Ñ*¨6Ô2Øˆä
Ð DÀVÀHÐMÓ
NÐNr+   c                 ó2   — t        j                  | |||«      S rb   )r   Ú_nested_view_from_buffer)ÚbufferÚsizesÚstridesÚstorage_offsetss       r)   Ú_rebuild_nested_tensorr�   c  s   € Ü×)Ñ)¨&°%¸À/ÓRÐRr+   c                 óP   — t        |«      }| j                  ||¬«      }||_        |S ©NrY   )rV   Útorr   ©r”   r!   r/   rr   re   s        r)   Ú&_rebuild_device_tensor_from_cpu_tensorr¢   g  s+   € Ü" 6Ó*€FØ�W‰W˜5¨ˆWÓ0€FØ(€FÔØ€Mr+   c                 óv   — t        |«      }t        j                  | «      j                  ||¬«      }||_        |S rŸ   )rV   r   Ú
from_numpyr    rr   r¡   s        r)   Ú!_rebuild_device_tensor_from_numpyr¥   n  s9   € Ü" 6Ó*€FÜ×Ñ˜dÓ#×&Ñ&¨U¸6Ð&ÓB€FØ(€FÔØ€Mr+   c                 ó6   — t        j                  ||| d|¬«      S )NÚmetarw   )r   Úempty_strided)r!   r   r^   rr   s       r)   Ú_rebuild_meta_tensor_no_storager©   y  s    € Ü×ÑØˆf˜E¨&Àôð r+   c           
      óf   — t        |«      }t        j                  j                  | |||||||¬«      S )N)r›   r!   r]   r|   r/   rr   )rV   r   r   Ú_make_wrapper_subclass)Úclsr!   r   r^   r]   r|   r/   rr   s           r)   Ú_rebuild_wrapper_subclassr­     sB   € ô # 6Ó*€FÜ�<‰<×.Ñ.ØØØØØ%ØØØ#ð /ó 	ð 	r+   c                 ó¢  — |d   }|t         j                  k(  r6|\  }}	}
t        j                  ||	|
| j                  | j                  ¬«      }�n^|t         j
                  t         j                  fv �r-|\  }}}}t        |«      t        u råt        |«      t        u rÔ|t         j
                  k(  rat        j                  |t         j                  | j                  ¬«      }t        j                  |t         j                  | j                  ¬«      }n`t        j                  |t         j                  | j                  ¬«      }t        j                  |t         j                  | j                  ¬«      }t        j                  ||||| j                  | j                  ¬«      }nt        d|› �«      ‚|j                  | |||«       ||_        ||_        |S )Nr   )ÚscaleÚ
zero_pointr!   r/   rY   )ÚscalesÚzero_pointsÚaxisr!   r/   z0Can't deserialize quantized tensor with qscheme )r   Úper_tensor_affineÚ_empty_affine_quantizedr!   r/   Úper_channel_affineÚ per_channel_affine_float_qparamsr   rE   re   ÚdoubleÚlongÚfloatÚ#_empty_per_channel_affine_quantizedr   r[   rr   rs   )r\   r]   r   r^   Úquantizer_paramsrr   rt   ÚqschemeÚ_r¯   r°   re   r±   r²   r³   s                  r)   Ú_rebuild_qtensorr¿   ˜  sx  € ð ˜qÑ!€GØ”%×)Ñ)Ò)Ø/Ñˆˆ5�*Ü×.Ñ.ØØØ!Ø—-‘-Ø—>‘>ô
Šð 
”U×-Ñ-¬u×/UÑ/UÐVÒ	VØ'7Ñ$ˆˆ6�; Ü�‹<œ4Ñ¤D¨Ó$5¼Ñ$=Øœ%×2Ñ2Ò2ÜŸ™ f´E·L±LÈÏÉÔX�Ü#Ÿl™lØ¤u§z¡z¸'¿.¹.ô‘ô Ÿ™ f´E·K±KÈÏÉÔW�Ü#Ÿl™lØ¤u§{¡{¸7¿>¹>ô�ô ×:Ñ:ØØØ#ØØ—-‘-Ø—>‘>ô
‰ô ÐMÈgÈYÐWÓXÐXØ
‡K�K�˜¨¨vÔ6Ø(€FÔð ,€FÔØ€Mr+   c                 óT   — t         j                  j                  | |«      }||_        |S rb   )r   ÚnnÚ	Parameterrs   )r”   rr   rt   Úparams       r)   Ú_rebuild_parameterrÄ   Ë  s'   € Ü�H‰H×Ñ˜t ]Ó3€Eð +€EÔà€Lr+   c                 ól   — t         j                  j                  | |«      }||_        t	        ||«      }|S rb   )r   rÁ   rÂ   rs   Ú_set_obj_state)r”   rr   rt   ÚstaterÃ   s        r)   Ú_rebuild_parameter_with_staterÈ   Õ  s5   € Ü�H‰H×Ñ˜t ]Ó3€Eð +€EÔô ˜5 %Ó(€EØ€Lr+   c           	      ó  — t        | dd «      }|r	 |«       }|S t        j                  | j                  «      }|r5| j                  |D �ci c]  }t        | |«      r|t        | |«      “Œ c}f}|S | j                  }|S c c}w )NÚ__getstate__)r8   ÚcopyregÚ
_slotnamesr   Ú__dict__r:   )ÚobjÚgetstate_fnrÇ   Úslots_to_saveÚnames        r)   Ú_get_obj_staterÒ   á  s”   € ô ˜#˜~¨tÓ4€KÙÙ“ˆð €Lô  ×*Ñ*¨3¯=©=Ó9ˆÙà—‘ð !.öàÜ˜s DÔ)ð œ' # tÓ,Ñ,òðˆEð €Lð —L‘LˆEà€Lùòs   Á	 A=c                 ó  — t        |t        «      r't        |«      dk(  st        d|› �«      ‚|d   }|d   }n|}d }|r%|j	                  «       D ]  \  }}t        | ||«       Œ |r%|j	                  «       D ]  \  }}t        | ||«       Œ | S )Né   zInvalid serialized state: r   rB   )r   ÚtuplerD   r   ÚitemsÚsetattr)rÎ   rÇ   Ú
dict_stateÚslots_stateÚkÚvs         r)   rÆ   rÆ   ü  s¥   € Ü�%œÔÜ�5‹z˜QŠÜÐ!;¸E¸7ÐCÓDÐDØ˜1‘Xˆ
Ø˜A‘h‰àˆ
Øˆñ Ø×$Ñ$Ó&ò 	‰DˆAˆqÜ�C˜˜AÕð	ñ Ø×%Ñ%Ó'ò 	‰DˆAˆqÜ�C˜˜AÕð	à€Jr+   c                 óp   — | j                  d«      }t        |d   «      }|dd  D ]  }t        ||«      }Œ |S )Nr   r   rB   )ÚsplitÚ
__import__r8   )rÑ   Ú
componentsrÎ   Ú	components       r)   r   r     sC   € Ø—‘˜C“€JÜ
�Z ‘]Ó
#€CØ  �^ò &ˆ	Ü�c˜9Ó%‰ð&à€Jr+   c                 óT   — t         j                  j                  j                  | «      S )a¢  Flatten dense tensors into a contiguous 1D buffer. Assume tensors are of
    same dense type.

    Since inputs are dense, the resulting tensor will be a concatenated 1D
    buffer. Element-wise operation on this buffer will be equivalent to
    operating individually.

    Args:
        tensors (Iterable[Tensor]): dense tensors to flatten.

    Returns:
        A contiguous 1D buffer containing input tensors.
    )r   r2   Ú_nnÚflatten_dense_tensors)Útensorss    r)   Ú_flatten_dense_tensorsrå     s   € ô �8‰8�<‰<×-Ñ-¨gÓ6Ð6r+   c                 ón  — t         j                  j                  j                  | D �cg c]!  }t         j                  j                  |«      ‘Œ# c}«      }t         j                  j                  j                  | D �cg c]!  }t         j                  j                  |«      ‘Œ# c}«      }||fS c c}w c c}w )ab  Flatten sparse tensors into two contiguous 1D buffers, one of indices and
    one of values. Assume tensors are of same sparse type.

    Args:
        tensors (Iterable[Tensor]): sparse tensors to flatten.

    Returns:
        A tuple of two contiguous 1D buffers, one containing input tensors'
        indices and the other containing the values.
    )r   r2   râ   rã   r   r   r   )rä   r_   Úflat_indicesÚflat_valuess       r)   Ú_flatten_sparse_tensorsré   +  s‡   € ô —8‘8—<‘<×5Ñ5Ø+2Ö3 aŒ�‰×	Ñ	˜qÕ	!Ò3ó€Lô —(‘(—,‘,×4Ñ4Ø*1Ö2 QŒ�‰×	Ñ	˜aÕ	 Ò2ó€Kð ˜Ð$Ð$ùò 	4ùò 	3s   ¨&B-Á<&B2c                 óV   — t         j                  j                  j                  | |«      S )a®  View a flat buffer using the sizes of tensors. Assume that tensors are of
    same dense type, and that flat is given by _flatten_dense_tensors.

    Args:
        flat (Tensor): flattened dense tensors to unflatten.
        tensors (Iterable[Tensor]): dense tensors whose sizes will be used to
          unflatten flat.

    Returns:
        Unflattened dense tensors with sizes same as tensors and values from
        flat.
    )r   r2   râ   Úunflatten_dense_tensors)Úflaträ   s     r)   Ú_unflatten_dense_tensorsrí   ?  s   € ô �8‰8�<‰<×/Ñ/°°gÓ>Ð>r+   c           	      ó  — | \  }}t         j                  j                  j                  ||D �cg c]!  }t         j                  j                  |«      ‘Œ# c}«      }t         j                  j                  j                  ||D �cg c]!  }t         j                  j                  |«      ‘Œ# c}«      }g }t        |||«      D ]6  \  }}}	|j                  |j                  ||	|j                  «       «      «       Œ8 t        |«      S c c}w c c}w )a  View flat buffer (containing indices and values) using the sizes of
    tensors. Assume that tensors are of same sparse type, and that flat is given
    by _flatten_sparse_tensors.

    Args:
        flat (tuple(Tensor, Tensor)): flattened indices and values of sparse
          tensors to unflatten.
        tensors (Iterable[Tensor]): sparse tensors whose sizes will be used to
          unflatten flat.

    Returns:
        Unflattened sparse tensors with sizes same as tensors and values from
        flat.
    )r   r2   râ   rë   r   r   r   Úzipr’   Únewr   rÕ   )
rì   rä   rç   rè   r_   r>   r?   ÚoutputsÚirÛ   s
             r)   Ú_unflatten_sparse_tensorsró   O  sØ   € ð !%Ñ€L�+Ü�h‰h�l‰l×2Ñ2Ø¸ÖA°A”u—|‘|×,Ñ,¨QÕ/ÒAó€Gô �X‰X�\‰\×1Ñ1Ø°wÖ?°!”e—l‘l×*Ñ*¨1Õ-Ò?ó€Fð €GÜ�w ¨Ó0ò .‰ˆˆ1ˆaØ�‰�q—u‘u˜Q  1§6¡6£8Ó,Õ-ð.ä�‹>Ðùò Bùò @s   ®&D
Â&D
c                 ó  ‡— t        t        «      }| D ]$  }||j                  «          j                  |«       Œ& |j	                  «       D ��ci c]  \  }}|t        |«      “Œ c}}Št        ˆfd„|D «       «      S c c}}w )a  Assume that tensors are of same order as ordered_tensors within their
    types, e.g., from _take_tensors. Reorder them to be of same order as
    ordered_tensors.

    Args:
        tensors (Iterable[Tensor]): tensors to be reordered. They should be of
          the same order as ordered_tensors within their own types.
        ordered_tensors (Iterable[Tensor]): tensors whose order will be the
          reference.

    Returns:
        Ordered tuple of tensors with contents from tensors and order of
        ordered_tensors.
    c              3   óV   •K  — | ]   }t        ‰|j                  «          «      –— Œ" y ­wrb   )Únextr   )Ú.0re   Ú
type_dict_s     €r)   ú	<genexpr>z&_reorder_tensors_as.<locals>.<genexpr>~  s!   øè ø€ ÒO°V”�j §¡£Ñ/×0ÑOùs   ƒ&))r   rE   r   r’   rÖ   ÚiterrÕ   )rä   Úordered_tensorsÚ	type_dictre   r_   Úcollrø   s         @r)   Ú_reorder_tensors_asrþ   k  sq   ø€ ô œDÓ!€IØò 0ˆØ�&—+‘+“-Ñ ×'Ñ'¨Õ/ð0à/8¯©Ó/@×A¡G A t�!”T˜$“Z‘-ÓA€JÜÓO¸ÔOÓOÐOùó Bs   ÁA;c              #   óœ  K  — t        d„ «      }| D �]  }|j                  «       }|j                  r‚t        j                  j                  |«      }t        j                  j                  |«      }|j                  «       |j                  «       z  |j                  «       |j                  «       z  z   }n!|j                  «       |j                  «       z  }||   }|d   |z   |kD  r|d   dkD  r|d   –— g dgx}||<   |d   j                  |«       |dxx   |z  cc<   �Œ |j                  «       D ]  \  }	}
t        |	«      dkD  sŒ|	–— Œ y­w)aÕ  Group tensors into chunks. This generator yields a chunk at each time,
    each containing tensors of same type up to certain byte limit in total size.

    Args:
        tensors (Sequence): A sequence of tensors to be separated into chunks.
        size_limit (int): The limit of each chunk in bytes.

    Yields:
        Blocks of tensors of same type and within size_limit. The yielded
        tensors are only ordered as the original sequence within its types.
    c                  ó
   — g dgS )Nr   © r  r+   r)   ú<lambda>z_take_tensors.<locals>.<lambda>�  s
   € ¸BÀ¸7€ r+   rB   r   N)r   r   r   r   r   r   r   ÚnumelÚelement_sizer’   r?   rD   )rä   Ú
size_limitÚbuf_dictre   r_   r>   r?   r   Úbuf_and_sizeÚbufr¾   s              r)   Ú_take_tensorsr	  �  s=  è ø€ ô (3±?Ó'C€HØó  ˆØ�K‰K‹MˆØ×ÒÜ—l‘l×+Ñ+¨FÓ3ˆGÜ—\‘\×)Ñ)¨&Ó1ˆFà—‘“ '×"6Ñ"6Ó"8Ñ8Ø—,‘,“. 6×#6Ñ#6Ó#8Ñ8ñ9ñ ð
 —<‘<“> F×$7Ñ$7Ó$9Ñ9ˆDØ ‘{ˆØ˜‰?˜TÑ! JÒ.°<À±?ÀQÒ3FØ˜q‘/Ò!Ø*,¨a¨Ð0ˆL˜8 A™;Ø�Q‰×Ñ˜vÔ&Ø�Q‹˜4Ñ�ð! ð" —/‘/Ó#ò ‰ˆˆQÜˆs‹8�a‹<Ø‹Iñùs   ‚EEÅEc                 ó   ‡ ‡— ˆˆ fd„}|S )Nc                 óF   •— t        ‰«      | _        ‰| j                  d<   | S )NÚreturn)rS   Ú__annotations__)Úfunr#   Úrets    €€r)   Údeczannotate.<locals>.dec§  s$   ø€ Ü" 6›lˆÔØ(+ˆ×Ñ˜HÑ%Øˆ
r+   r  )r  r#   r  s   `` r)   Úannotater  ¦  s   ù€ õð
 €Jr+   c                 óz  — t         j                  j                  | «      }|€t        | «      }g }t         j                  j                  dd¬«      5  |j                  d„ |D «       «       |j                  d„ |j                  «       D «       «       |› ddj                  |«      › d�}d d d «       |S # 1 sw Y   S xY w)Nr   )Ú	thresholdÚ	edgeitemsc              3   ó2   K  — | ]  }t        |«      –— Œ y ­wrb   ©Úrepr)r÷   Úas     r)   rù   zrender_call.<locals>.<genexpr>¶  s   è ø€ Ò. Aœ˜QŸÑ.ùs   ‚c              3   óB   K  — | ]  \  }}|› d t        |«      › �–— Œ y­w)ú=Nr  )r÷   rÚ   rÛ   s      r)   rù   zrender_call.<locals>.<genexpr>·  s#   è ø€ ÒD©T¨Q°˜1˜#˜Qœt A›w˜iÔ(ÑDùs   ‚ú(z, ú))	r   Ú	overridesÚresolve_namer   Ú_tensor_strÚprintoptionsÚextendrÖ   Újoin)ÚfnÚargsr#   Ústr_fnÚstr_argsÚrs         r)   Úrender_callr(  ¯  s¦   € Ü�_‰_×)Ñ)¨"Ó-€FØ€~Ü�R“ˆà€HÜ	×	Ñ	×	'Ñ	'°!¸qÐ	'Ó	Añ /Ø�‰Ñ.¨Ô.Ô.Ø�‰ÑD°V·\±\³^ÔDÔDØˆh�a˜Ÿ	™	 (Ó+Ð,¨AÐ.ˆ÷/ð €H÷	/ð €Hús   ÁAB0Â0B:c                   ó   — e Zd ZdZdZd„ Zy)ÚKeyErrorMessagez(str subclass that returns itself in reprr  c                 ó   — | S rb   r  ©r    s    r)   Ú__repr__zKeyErrorMessage.__repr__Ê  s   € Øˆr+   N)r   r   Ú__qualname__Ú__doc__Ú	__slots__r-  r  r+   r)   r*  r*  Å  s   „ Ù3à€Iór+   r*  c                   ó   — e Zd ZdZdd„Zd„ Zy)ÚExceptionWrapperz?Wraps an exception plus traceback to communicate across threadsNc                 óž   — |€t        j                  «       }|d   | _        dj                  t	        j
                  |Ž «      | _        || _        y )Nr   r   )ÚsysÚexc_infoÚexc_typer"  Ú	tracebackÚformat_exceptionÚexc_msgÚwhere)r    r5  r:  s      r)   Ú__init__zExceptionWrapper.__init__Ñ  sB   € ð ÐÜ—|‘|“~ˆHØ  ™ˆŒØ—w‘wœy×9Ñ9¸8ÐDÓEˆŒØˆ�
r+   c                 óR  — d| j                   j                  › d| j                  › d| j                  › �}| j                   t        k(  rt        |«      }n)t        | j                   dd«      r| j                  |¬«      ‚	 | j                  |«      }|‚# t        $ r t        |«      d‚w xY w)z4Reraises the wrapped exception in the current threadzCaught ú z.
Original rM   N)rM   )	r6  r   r:  r9  ÚKeyErrorr*  r8   Ú	Exceptionr   )r    ÚmsgÚ	exceptions      r)   ÚreraisezExceptionWrapper.reraiseÚ  s¤   € ð ˜Ÿ™×.Ñ.Ð/¨q°·±°¸LÈÏÉÈÐWˆØ�=‰=œHÒ$ô " #Ó&‰CÜ�T—]‘] I¨tÔ4ð —-‘-¨�-Ó,Ð,ð	.ØŸ™ cÓ*ˆIð
 ˆøô	 ò 	.ô ˜sÓ#¨Ð-ð	.ús   Á=B ÂB&)Nzin background)r   r   r.  r/  r;  rB  r  r+   r)   r2  r2  Î  s   „ ÙJóór+   r2  c                  óÖ  — t         j                  j                  «       ryt         j                  j                  j                  «       ryt        t         d«      rt         j                  j                  «       ryt        t         d«      rt         j                  j                  «       ryt         j                  j                  «       } t        t         | d «      }|r|j                  «       r| S y ©Nr.   ÚmpsÚxpuÚmtia)r   r.   Úis_availableÚbackendsrE  r:   rF  rG  r2   r3   r8   )Úcustom_backend_nameÚcustom_device_mods     r)   Ú_get_available_device_typerL  ñ  s¡   € Ü‡z�z×ÑÔ ØÜ‡~�~×Ñ×&Ñ&Ô(ØÜŒu�eÔ¤§¡×!7Ñ!7Ô!9ØÜŒu�fÔ¤%§*¡*×"9Ñ"9Ô";ØÜŸ(™(×@Ñ@ÓBÐÜ¤Ð':¸DÓAÐÙÐ.×;Ñ;Ô=Ø"Ð"àr+   c                 óÞ  — t        «       }|r)|j                  «       dk(  r | t        j                  «      S |r)|j                  «       dk(  r | t        j                  «      S |r)|j                  «       dk(  r | t        j
                  «      S |r)|j                  «       dk(  r | t        j                  «      S |t        j                  j                  «       k(  r | t        t        |«      «      S y rD  )
rL  Úlowerr   r.   rE  rF  rG  r2   r3   r8   )Ú
get_memberÚdevice_types     r)   Ú_get_device_attrrQ    s¼   € Ü,Ó.€KÙ�{×(Ñ(Ó*¨fÒ4Ùœ%Ÿ*™*Ó%Ð%Ù�{×(Ñ(Ó*¨eÒ3Ùœ%Ÿ)™)Ó$Ð$Ù�{×(Ñ(Ó*¨eÒ3Ùœ%Ÿ)™)Ó$Ð$Ù�{×(Ñ(Ó*¨fÒ4Ùœ%Ÿ*™*Ó%Ð%Ø”e—h‘h×<Ñ<Ó>Ò>Ùœ'¤%¨Ó5Ó6Ð6àr+   c                  ó   — t        d„ «      S )Nc                 ó"   — | j                  «       S rb   )Úcurrent_device©Úms    r)   r  z+_get_current_device_index.<locals>.<lambda>  s   €  a×&6Ñ&6Ó&8€ r+   ©rQ  r  r+   r)   Ú_get_current_device_indexrX    s   € äÑ8Ó9Ð9r+   c                  ó   — t        d„ «      S )Nc                 óF   — t        t        | j                  «       «      «      S rb   )rE   ÚrangeÚdevice_countrU  s    r)   r  z)_get_all_device_indices.<locals>.<lambda>  s   € ¤d¬5°·±Ó1AÓ+BÓ&C€ r+   rW  r  r+   r)   Ú_get_all_device_indicesr]    s   € äÑCÓDÐDr+   c                 óH   ‡— | D �‡cg c]  Št        ˆfd„«      ‘Œ c}S c c}w )Nc                 ó&   •— | j                  ‰«      S rb   )Úget_device_properties)rV  rò   s    €r)   r  z)_get_devices_properties.<locals>.<lambda>  s   ø€  q×'>Ñ'>¸qÓ'A€ r+   rW  )Ú
device_idsrò   s    `r)   Ú_get_devices_propertiesrb    s   ø€ àLV×WÀqÔÓAÕBÒWÐWùÒWs   ‡r  c                  ó‚   — t         j                  j                  «       dkD  rt         j                  j                  «       S y)zÈChecks if there are CUDA devices available and
    returns the device index of the current default CUDA device.
    Returns -1 in case there are no CUDA devices available.
    Arguments: ``None``
    r   éÿÿÿÿ)r   r.   r\  rT  r  r+   r)   Úget_current_device_indexre  !  s/   € ô ‡z�z×ÑÓ  1Ò$Ü�z‰z×(Ñ(Ó*Ð*Ør+   r/   ÚoptionalÚ	allow_cpuc                 ó´  — t        | t        «      rt        j                  | «      } d}t        | t        j                  «      r<|s| j                  dk(  rt        d| › �«      ‚| j                  dk(  rdn| j                  }t        | t        «      r| }|€F|r6t        j                  j                  «       rt        «       }|S t        «       }|S t        d| › �«      ‚|S )a'  Gets the device index from :attr:`device`, which can be a torch.device
    object, a Python integer, or ``None``.

    If :attr:`device` is a torch.device object, returns the device index if it
    has index. Note that for a device without a specified index,
    i.e., ``torch.device('xxx')``, this will return the current default
    device of that type if :attr:`optional` is ``True``. If :attr:`allow_cpu` is ``True``,
    CPU devices will be accepted and ``-1`` will be returned in this case.

    If :attr:`device` is a Python integer, it is returned as is.

    If :attr:`device` is ``None``, this will return the current default
    device of the supported runtime platform if :attr:`optional` is ``True``.
    i.e., the current default CUDA device will be returned if CUDA runtime is supported.
    Nr-   z$Expected a non cpu device, but got: rd  zFExpected a torch.device with a specified index or an integer, but got:)r   r   r   r/   r   Ú
ValueErrorÚindexÚintÚjitÚis_scriptingre  rX  )r/   rf  rg  Ú
device_idxs       r)   Ú_get_device_indexro  ,  sÕ   € ô( �&œ#ÔÜ—‘˜fÓ%ˆØ $€JÜ�&œ%Ÿ,™,Ô'Ù˜VŸ[™[¨EÒ1ÜÐCÀFÀ8ÐLÓMÐMØ!Ÿ;™;¨%Ò/‘R°V·\±\ˆ
Ü�&œ#ÔØˆ
ØÐÙô �y‰y×%Ñ%Ô'Ü5Ó7�
ð Ðô 7Ó8�
ð
 Ðô ØXÐY_ÐX`Ðaóð ð Ðr+   c                 ó˜   — t        | t        j                  j                  «      s%| j	                  «       rt        j
                  | «      S | S )zÀ
    Returns a real view of a tensor if complex dtype else just the tensor
    need to check if a UninitializedParameter because otherwise checking is_complex is an error for a LazyModule
    )r   r   rÁ   ÚUninitializedParameterÚ
is_complexÚview_as_realrd   s    r)   Ú_handle_complexrt  [  sC   € ô ˜&¤%§(¡(×"AÑ"AÔBØ×ÑÔô 	×Ñ˜6Ó"ðð ð	r+   c                 óˆ  — t        | t        j                  «      st        dt	        | «      › �«      ‚| j
                  r"t        j                  | «      j                  dz	  S | j                  r"t        j                  | «      j                  dz	  S | t        j                  k(  ryt        j                  | «      j                  dz	  S )z8
    Returns the element size for a dtype, in bytes
    zexpected torch.dtype, but got rÔ   r�   rB   )r   r   r!   r   r   rr  ÚfinfoÚbitsÚis_floating_pointÚboolÚiinfo)r!   s    r)   Ú_element_sizer{  h  s˜   € ô �eœUŸ[™[Ô)ÜÐ;¼DÀ»K¸=ÐIÓJÐJà×ÒÜ�{‰{˜5Ó!×&Ñ&¨!Ñ+Ð+Ø	×	 Ò	 Ü�{‰{˜5Ó!×&Ñ&¨!Ñ+Ð+Ø	”%—*‘*Ò	àä�{‰{˜5Ó!×&Ñ&¨!Ñ+Ð+r+   c                   ó   — e Zd Zdd„Zdd„Zy)Ú_ClassPropertyDescriptorNc                 ó   — || _         y rb   )Úfget)r    r  Úfsets      r)   r;  z!_ClassPropertyDescriptor.__init__{  s	   € Øˆ�	r+   c                 ó^   — |€t        |«      } | j                  j                  ||«      «       S rb   )r   r  Ú__get__)r    ÚinstanceÚowners      r)   r‚  z _ClassPropertyDescriptor.__get__~  s,   € Øˆ=Ü˜“NˆEØ1ˆt�y‰y× Ñ  ¨5Ó1Ó3Ð3r+   rb   )r   r   r.  r;  r‚  r  r+   r)   r}  r}  z  s   „ óô4r+   r}  c                 óZ   — t        | t        t        f«      st        | «      } t        | «      S rb   )r   ÚclassmethodÚstaticmethodr}  )Úfuncs    r)   Úclasspropertyr‰  „  s&   € Ü�dœ[¬,Ð7Ô8Ü˜4Ó ˆÜ# DÓ)Ð)r+   úU`torch._utils.is_compiling` is deprecated. Use `torch.compiler.is_compiling` instead.)Úcategoryc                  ó>   — t         j                  j                  «       S rb   )r   ÚcompilerÚis_compilingr  r+   r)   rŽ  rŽ  �  s   € ô
 �~‰~×*Ñ*Ó,Ð,r+   c                  ól   — t        j                  dd¬«       t        j                  j	                  «       S )zd
        Indicates whether we are tracing/compiling with torch.compile() or torch.export().
        rŠ  rÔ   )Ú
stacklevel)rJ   rK   r   r�  rŽ  r  r+   r)   rŽ  rŽ  –  s+   € ô 	�‰Øcàõ	
ô
 �~‰~×*Ñ*Ó,Ð,r+   c                 ó¨  — ddl m} t        | |«      r„t        j                  j                  t        j                  j                  j                  «      }	 t        j                  | j                  «       |� t        j                  j                  |«       y y t        j                  | «       y # |� t        j                  j                  |«       w w xY w)Nr   )ÚFunctionalTensor)Ú#torch._subclasses.functional_tensorr’  r   r   r2   Ú_unset_dispatch_modeÚ_TorchDispatchModeKeyÚ
FUNCTIONALÚ_functionalize_syncÚelemÚ_set_dispatch_mode)r_   r’  Úmaybe_functional_modes      r)   r—  r—  ¢  s¥   € õ Eä�!Ð%Ô&ô !&§¡× =Ñ =Ü�H‰H×*Ñ*×5Ñ5ó!
Ðð	CÜ×%Ñ% a§f¡fÔ-à$Ð0Ü—‘×+Ñ+Ð,AÕBð 1ô 	×!Ñ! !Õ$øð %Ð0Ü—‘×+Ñ+Ð,AÕBð 1ús   ÁB- Â-$CrÔ   rP  c                 óP   — t        t        | d «      }|€t        d| › d| › d�«      ‚|S )NzDevice 'z<' does not have a corresponding module registered as 'torch.z'.)r8   r   r   )rP  r<   s     r)   Ú_get_device_modulerœ  À  sA   € äœE ;°Ó5€MØÐÜØ�{�mÐ#_Ð`kÐ_lÐlnÐoó
ð 	
ð Ðr+   rÑ   c                 óX   — dt         fd„}t        | t        f |d«       |d«      dœ«      S )NÚis_initc                 ó   ‡ — ˆ fd„}|S )Nc                 ój   •— ‰r| j                   j                  }n| j                  }t        d|› �«      ‚)Nz&Tried to instantiate dummy base class )r   r   r   )rÎ   r$  r#   Ú
class_namerž  s       €r)   Úerr_fnz/_dummy_type.<locals>.get_err_fn.<locals>.err_fnÌ  s1   ø€ ÙØ Ÿ]™]×3Ñ3‘
à Ÿ\™\�
ÜÐ!GÈ
À|ÐTÓUÐUr+   r  )rž  r¢  s   ` r)   Ú
get_err_fnz_dummy_type.<locals>.get_err_fnË  s   ø€ ô	Vð ˆr+   TF)r;  Ú__new__)ry  r   Úobject)rÑ   r£  s     r)   Ú_dummy_typer¦  Ê  s5   € ðœDó ô ØŒvˆi¡j°Ó&6Á:ÈeÓCTÑUóð r+   c                   ó*   — e Zd Zd„ Zd„ Zd„ Zdefd„Zy)Ú_LazySeedTrackerc                 ó.   — d | _         d | _        g | _        y rb   ©Úmanual_seed_all_cbÚmanual_seed_cbÚ
call_orderr,  s    r)   r;  z_LazySeedTracker.__init__ß  s   € Ø"&ˆÔØ"ˆÔØˆ�r+   c                 óP   — ||f| _         | j                  | j                   g| _        y rb   rª  ©r    Úcbr7  s      r)   Úqueue_seed_allz_LazySeedTracker.queue_seed_allä  s&   € Ø#% y /ˆÔà×.Ñ.°×0GÑ0GÐHˆ�r+   c                 óP   — ||f| _         | j                  | j                   g| _        y rb   )r¬  r«  r­  r¯  s      r)   Ú
queue_seedz_LazySeedTracker.queue_seedé  s&   € Ø! 9˜oˆÔà×2Ñ2°D×4GÑ4GÐHˆ�r+   r  c                 ó   — | j                   S rb   )r­  r,  s    r)   Ú	get_callsz_LazySeedTracker.get_callsî  s   € Ø�‰Ðr+   N)r   r   r.  r;  r±  r³  rE   rµ  r  r+   r)   r¨  r¨  Ú  s   „ ò
ò
Iò
Ið
˜4ô r+   r¨  ÚPc                   ón   — e Zd Zdefd„Zdeedf   ddfd„Zdej                  dej                  ddfd	„Z
y)
ÚCallbackRegistryrÑ   c                 ó    — || _         g | _        y rb   )rÑ   Úcallback_list)r    rÑ   s     r)   r;  zCallbackRegistry.__init__÷  s   € ØˆŒ	Ø68ˆÕr+   r°  Nr  c                 ó:   — | j                   j                  |«       y rb   )rº  r’   )r    r°  s     r)   Úadd_callbackzCallbackRegistry.add_callbackû  s   € Ø×Ñ×!Ñ! "Õ%r+   r$  r#   c                 ó–   — | j                   D ]  }	  ||i |¤Ž Œ y # t        $ r# t        j                  d| j                  «       Y Œ:w xY w)Nz6Exception in callback for %s registered with gpu trace)rº  r?  ÚloggerrA  rÑ   )r    r$  r#   r°  s       r)   Úfire_callbackszCallbackRegistry.fire_callbacksþ  sQ   € Ø×$Ñ$ò 	ˆBðÙ�DÐ#˜FÓ#ñ	øô ò Ü× Ñ ØLÈdÏiÉiöðús   ‘œ)AÁA)r   r   r.  r   r;  r   r¶  r¼  r$  r#   r¿  r  r+   r)   r¸  r¸  ö  sL   „ ð9˜Só 9ð&˜x¨¨4¨Ñ0ð &°Tó &ð A§F¡Fð °a·h±hð À4ô r+   r¸  Úmodule_namec                 óR  — t         j                  j                  | d «      x}�|S t        j                  j                  | «      x}�bt        j                  j                  |«      }|t         j                  | <   |j                  €J d«       ‚|j                  j                  |«       |S y )Nz)The loader attribute should always be set)	r4  ÚmodulesrT   Ú	importlibÚutilÚ	find_specÚmodule_from_specÚloaderÚexec_module)rÀ  ÚmoduleÚspecs      r)   Ú
try_importrË    s‘   € ô —+‘+—/‘/ +¨tÓ4Ð4ˆÐAØˆä—‘×(Ñ(¨Ó5Ð5ˆÐBÜ—‘×0Ñ0°Ó6ˆØ#)Œ�‰�KÑ ð �{‰{Ð&ÐSÐ(SÓSÐ&Ø�‰×Ñ Ô'Øˆàr+   ÚbuiltinsrË   ÚqueueÚreprlibzcollections.abcÚcollectionsÚdbmÚio)Ú__builtin__Úcopy_regÚQueuer  Ú_abcollÚUserDictÚUserListÚ
UserStringÚwhichdbÚStringIOÚ	cStringIO)rÒ  Úxrange)rÌ  r[  )rÒ  Úreduce)Ú	functoolsrÝ  )rÒ  Úintern)r4  rß  )rÒ  Úunichr)rÌ  Úchr)rÒ  Úunicode)rÌ  r   )rÒ  r¹   )rÌ  rk  )Ú	itertoolsÚizip)rÌ  rï   )rã  Úimap)rÌ  Úmap)rã  Úifilter)rÌ  Úfilter)rã  Úifilterfalse)rã  Úfilterfalse)rã  Úizip_longest)rã  Úzip_longest)rÖ  ÚIterableUserDict)rÏ  rÖ  )r×  r×  )rÏ  r×  )rØ  rØ  )rÏ  rØ  )rÒ  Ú
basestring)Ú
exceptionsÚStandardError)rÌ  r?  )rÖ  rÖ  )NF)Frb   )FF)XrË   rÞ  rÃ  Úloggingr4  r7  rJ   rÏ  r   Útypesr   Útypingr   r   r   r   r	   Útyping_extensionsr
   r   r   r*   r@   r   rV   r`   rf   rj   rp   ru   rx   ry   rE   r  r�   r–   r�   r¢   r¥   Ú_rebuild_xla_tensorr©   r­   r¿   rÄ   rÈ   rÒ   rÆ   r   rå   ré   rí   ró   rþ   r	  r  r(  r   r*  r2  rL  rQ  rX  r]  rb  rk  re  ry  ro  rt  r{  r}  r‰  ÚFutureWarningrŽ  r—  Ú	lru_cacherœ  r   r¦  r¨  Ú	getLoggerr   r¾  r¶  r¸  rË  ÚIMPORT_MAPPINGÚNAME_MAPPINGr  r+   r)   ú<module>rû     sO  ðä Û Û Û Û 
Û Û Ý #Ý ß BÕ Bß 3ã ó%8óP.#òbò$òzJò1ò4òð" óð> óð0 57Ð ˜T .Ñ1Ó 6ò",òJ'OòTSòòð 8Ð òòò20òfò	òò6ò,ò7ò"%ò(?ò ò8Pò, òJò
ô,�cô ÷ ñ  òFò"ò :ò
Eò
Xð
 #ó ð Øñ,Øð,àð,ð ð,ð 	ó	,ò^
ò,÷$4ñ 4ò*ñ ñ Ø_Øôð-˜$ò -ó	ñ-ð
	-˜$ó 	-ò%ð< €×Ñ�QÓð Cò ó ðð�cð ˜dó ÷ ñ ð0 
ˆ×	Ñ	˜8Ó	$€ÙˆcƒN€ô�w˜q‘zô ð$˜Cð  H¨ZÑ$8ó ð. ØØØØ àØØØØØñ€ð&ØÐ4ðàÐ6ðð Ð0ðð Ð2ð	ð
 Ð 3ðð Ð0ðð Ð.ðð Ð.ðð Ð4ðð "Ð#?ðð "Ð#?ðð %Ð&Aðð Ð9ðð !Ð"?ðð  "Ð#6ð!ð" $Ð%>ð#ð$ Ð9ð%�r+   