U
    <ºc<  ã                   @   sŽ   d Z ddlZddlZddlmZ ejdkZdZdazddl	Z	dZ
W n ek
rZ   dZ
Y nX dd	„ Ze e¡ d
dlmZmZmZmZmZ dS )a[  Utility classes & functions for data loading. Code in this folder is mostly
used by ../dataloder.py.

A lot of multiprocessing is used in data loading, which only supports running
functions defined in global environment (py2 can't serialize static methods).
Therefore, for code tidiness we put these functions into different files in this
folder.
é    N)ÚExceptionWrapperÚwin32g      @FTc                   C   s   da d S )NT)Úpython_exit_status© r   r   úD/tmp/pip-unpacked-wheel-gikjz4vx/torch/utils/data/_utils/__init__.pyÚ_set_python_exit_flag-   s    r   é   )ÚworkerÚsignal_handlingÚ
pin_memoryÚcollateÚfetch)Ú__doc__ÚsysÚatexitZtorch._utilsr   ÚplatformZ
IS_WINDOWSZMP_STATUS_CHECK_INTERVALr   ZnumpyZ	HAS_NUMPYÚModuleNotFoundErrorr   ÚregisterÚ r	   r
   r   r   r   r   r   r   r   Ú<module>   s   	


