U
    Kºc  ã                   @   s:   d dl Z d dlmZ edœdd„Zeƒ edœdd„ƒZdS )é    N)Ú	lru_cache)Úreturnc                   C   s   t jjS )zîReturns 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Ú_CZhas_mps© r   r   ú?/tmp/pip-unpacked-wheel-gikjz4vx/torch/backends/mps/__init__.pyÚis_built   s    r   c                   C   s
   t j ¡ S )z8Returns a bool indicating if MPS is currently available.)r   r   Z_is_mps_availabler   r   r   r   Úis_available   s    r	   )r   Ú	functoolsr   Z
_lru_cacheÚboolr   r	   r   r   r   r   Ú<module>   s   