o
    zi                     @   s   d Z ddlZddlZddlmZmZ ddlmZ ejj	ejj
fdkZedZedZedZed	Zed
ZedZejdddedefddZedZdefddZdS )zGeneral utilities.    N)RequirementCachepackage_available)rank_zero_warn)      ztorchmetrics>=0.8.0ztorchmetrics>=0.9.1ztorchmetrics>=0.11.0ztorchmetrics>=1.0.0	omegaconftorchvision   )maxsizemodule_namereturnc              
   C   sN   zt |  W dS  ttfy& } ztd|  d|  W Y d }~dS d }~ww )NTz
Import of z/ package failed for some compatibility issues:
F)
__import__ImportErrorAttributeErrorr   )r   err r   W/home/ubuntu/.local/lib/python3.10/site-packages/pytorch_lightning/utilities/imports.py_try_import_module!   s   r   zlightning-habana>=1.2.0c                   C   s   t totdS )Nlightning_habana)bool_LIGHTNING_HABANA_AVAILABLEr   r   r   r   r    _habana_available_and_importable/   s   r   )__doc__	functoolssys lightning_utilities.core.importsr   r   %pytorch_lightning.utilities.rank_zeror   version_infomajorminor_PYTHON_GREATER_EQUAL_3_11_0!_TORCHMETRICS_GREATER_EQUAL_0_8_0!_TORCHMETRICS_GREATER_EQUAL_0_9_1 _TORCHMETRICS_GREATER_EQUAL_0_11!_TORCHMETRICS_GREATER_EQUAL_1_0_0_OMEGACONF_AVAILABLE_TORCHVISION_AVAILABLE	lru_cachestrr   r   r   r   r   r   r   r   <module>   s    

