Ë
    g^(hj  ã                   ó´   — U d dl mZ d dlmZmZ d dlZd dlmZ	 g d¢Z
defd„Zedefd„«       Zed	ed
edefd„«       Zedd
edefd„«       Zdaee	   ed<   d„ Zy)é    )Ú	lru_cache)ÚOptionalÚTYPE_CHECKINGN)ÚLibrary)Úis_builtÚis_availableÚis_macos13_or_newerÚis_macos_or_newerÚreturnc                  ó6   — t         j                  j                  S )zóReturn whether PyTorch is built with MPS support.

    Note that this doesn't necessarily mean MPS is available; just that
    if this PyTorch binary were run a machine with working MPS drivers
    and devices, we would be able to use it.
    )ÚtorchÚ_CÚ_has_mps© ó    úY/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/torch/backends/mps/__init__.pyr   r      s   € ô �8‰8×ÑÐr   c                  ó>   — t         j                  j                  «       S )z7Return a bool indicating if MPS is currently available.)r   r   Ú_mps_is_availabler   r   r   r   r      s   € ô �8‰8×%Ñ%Ó'Ð'r   ÚmajorÚminorc                 óB   — t         j                  j                  | |«      S )zHReturn a bool indicating whether MPS is running on given MacOS or newer.©r   r   Ú_mps_is_on_macos_or_newer)r   r   s     r   r
   r
      s   € ô �8‰8×-Ñ-¨e°UÓ;Ð;r   c                 óB   — t         j                  j                  d| «      S )zEReturn a bool indicating whether MPS is running on MacOS 13 or newer.é   r   )r   s    r   r	   r	   "   s   € ô �8‰8×-Ñ-¨b°%Ó8Ð8r   Ú_libc                  ó²   — t         €
t        «       syddlm}  ddlm} t        dd«      a t         j                  d|d«       t         j                  d	| d«       y)
z<Register prims as implementation of var_mean and group_norm.Nr   )Únative_group_norm_backward)Únative_group_normÚatenÚIMPLr   ÚMPSr   )r   r   Útorch._decomp.decompositionsr   Útorch._refsr   Ú_LibraryÚimpl)r   r   s     r   Ú_initr'   +   sG   € ô ÐœxœzØåGÝ-ä�F˜FÓ#€DÜ‡I�IÐ!Ð#4°eÔ<Ü‡I�IÐ*Ð,FÈÕNr   )r   )Ú	functoolsr   Ú
_lru_cacheÚtypingr   r   r   Útorch.libraryr   r%   Ú__all__Úboolr   r   Úintr
   r	   r   Ú__annotations__r'   r   r   r   ú<module>r0      s¢   ðæ -ß *ã Ý -ò S€ð�$ó ð ð(�dò (ó ð(ð
 ð<˜Sð <¨ð <°ò <ó ð<ð
 ñ9˜sð 9¨4ò 9ó ð9ð
  €€hˆxÑÓ óOr   