Ë
    Dêñi­
  ã                   ó\   — d dl Z d dlZddlmZ d„ Zd„ Z ed«      rd„ Zd„ Zd	„ Z e«        y)
é    Né   )Ú_get_extension_pathc           	      ó2  — 	 t        | «      }t        j                  j                  |«       y# t        t
        f$ rZ}t        j                  j                  d«      r1ddl	}|j                  d| › dt        |«      j                  › d|› �«       Y d}~yd}~ww xY w)	z”Load a library, optionally warning on failure based on env variable.

    Returns True if the library was loaded successfully, False otherwise.
    TÚ-TORCHVISION_WARN_WHEN_EXTENSION_LOADING_FAILSr   NzFailed to load 'z' extension: z: F)r   ÚtorchÚopsÚload_libraryÚImportErrorÚOSErrorÚosÚenvironÚgetÚwarningsÚwarnÚtypeÚ__name__)Úlib_nameÚlib_pathÚer   s       úW/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/torchvision/extension.pyÚ_load_libraryr      s€   € ð
	Ü& xÓ0ˆÜ�	‰	×Ñ˜xÔ(ØøÜœÐ!ò Ü�:‰:�>‰>ÐIÔJÛà�M‰MÐ,¨X¨J°mÄDÈÃG×DTÑDTÐCUÐUWÐXYÐWZÐ[Ô\Üûðús   ‚*- ­B¼ABÂBc                   ó   — y)NF© r   ó    r   Ú_has_opsr      s   € Ør   Ú_Cc                   ó   — y)NTr   r   r   r   r   r      s   € Ør   c                  ó.   — t        «       st        d«      ‚y )Nag  Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.__version__ and your torchvision version with torchvision.__version__ and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install. Set TORCHVISION_WARN_WHEN_EXTENSION_LOADING_FAILS=1 and retry to get more details.)r   ÚRuntimeErrorr   r   r   Ú_assert_has_opsr    #   s   € ÜŒ:Üðaó	
ð 		
ð r   c                  óš  — t        «       syddlm}  t        j                  j
                  j                  «       }|dk7  rŒ| �Št        |«      }t        |«      dk\  sJ d|› d�«       ‚t        |dd «      }t        |d   «      }| j                  d	«      }t        |d   «      }t        |d
   «      }||k7  rt        d|› d	|› d|› d	|› d�	«      ‚|S )z`
    Make sure that CUDA versions match between the pytorch install and torchvision install
    éÿÿÿÿr   )Úcudaià.  zUnexpected CUDA version z, please file a bug report.é   é   ú.r   zqDetected that PyTorch and torchvision were compiled with different CUDA major versions. PyTorch has CUDA Version=z" and torchvision has CUDA Version=zE. Please reinstall the torchvision that matches your PyTorch install.)r   Útorch.versionr#   r   r   ÚtorchvisionÚ_cuda_versionÚstrÚintÚsplitr   )Útorch_version_cudaÚ_versionÚ
tv_versionÚtv_majorÚtv_minorÚ	t_versionÚt_majorÚt_minors           r   Ú_check_cuda_versionr5   1   sñ   € ô Œ:ØÝ8ä�y‰y×$Ñ$×2Ñ2Ó4€HØ�2‚~Ð,Ð8Ü˜“]ˆ
Ü�:‹ %Ò'ÐiÐ+CÀHÀ:ÐMhÐ)iÓiÐ'Ü�z ! A�Ó'ˆÜ�z !‘}Ó%ˆØ&×,Ñ,¨SÓ1ˆ	Ü�i ‘lÓ#ˆÜ�i ‘lÓ#ˆØ�hÒÜð,Ø,3¨9°A°g°Yð ? Ø (˜z¨¨8¨*ð 5VðVóð ð €Or   )r   r   Ú_internally_replaced_utilsr   r   r   r    r5   r   r   r   ú<module>r7      s9   ðÛ 	ã å ;òò"ñ �Ôòò
òñ6 Õ r   