a
    h                     @   s   d dl Zd dlZd dlmZ eje ddZdZdZ	e
e
ddddZed	d
dZzd dlmZ W n ey   d dlmZ Y n0 dd ZdS )    N)_get_torch_homeZdatasetsZvisionF)fpathurlreturnc                 C   s   d S )N )r   r   r   r   T/var/www/auris/lib/python3.9/site-packages/torchvision/_internally_replaced_utils.py#_download_file_from_remote_location   s    r   )r   c                   C   s   dS )NFr   r   r   r   r   _is_remote_location_available   s    r	   )load_state_dict_from_url)load_urlc           	      C   s   t jt}t jdkrbdd l}|jddd}t|d}|d}|rN|j	|j
_t | || tjjtjjf}tj||}|| }|d u rt|jS )Nntr   zkernel32.dllT)use_last_errorAddDllDirectory   )ospathdirname__file__namectypesZWinDLLhasattrZSetErrorModec_void_pr   restypeZadd_dll_directory	importlib	machineryExtensionFileLoaderEXTENSION_SUFFIXES
FileFinder	find_specImportErrororigin)	Zlib_namelib_dirr   kernel32Zwith_load_library_flagsZprev_error_modeloader_detailsZ	extfinderZ	ext_specsr   r   r   _get_extension_path   s     






r$   )Zimportlib.machineryr   r   Z	torch.hubr   r   joinZ_HOMEZ_USE_SHARDED_DATASETSZ	IN_FBCODEstrr   boolr	   r
   r   Ztorch.utils.model_zoor   r$   r   r   r   r   <module>   s   