
    /js                         d dl mZ d dlZddlmZ d dlmZmZmZm	Z	m
Z
mZmZ 	 ddlmZ n# e$ r Y nw xY wdadZd	 Zd
 Zd Zd Zd Zd ZdS )    )ModuleN   )	extension)_meta_registrationsdatasetsiomodelsops
transformsutils)__version__PILpyavc                 8    | dvrt          d|  d          | adS )a*  
    Specifies the package used to load images.

    Args:
        backend (string): Name of the image backend. one of {'PIL', 'accimage'}.
            The :mod:`accimage` package uses the Intel IPP library. It is
            generally faster than PIL, but does not support as many operations.
    )r   accimagezInvalid backend 'z#'. Options are 'PIL' and 'accimage'N)
ValueError_image_backendbackends    Y/home/longshao/multi-rider-rag/.venv/lib/python3.11/site-packages/torchvision/__init__.pyset_image_backendr      s3     )))YWYYYZZZNNN    c                      t           S )z:
    Gets the name of the package used to load images
    )r    r   r   get_image_backendr   $   s
     r   c                     dS )a  
    Specifies the package used to decode videos.

    Args:
        backend (string): Name of the video backend. Only 'pyav' is supported.
            The :mod:`pyav` package uses the 3rd party PyAv library. It is a Pythonic
            binding for the FFmpeg libraries.
    Nr   r   s    r   set_video_backendr   +   s	     	Dr   c                      t           S )z
    Returns the currently active video backend used to decode videos.

    Returns:
        str: Name of the video backend. Currently only 'pyav' is supported.
    )_video_backendr   r   r   get_video_backendr    7   s
     r   c                  >    t           j                                        S N)torch_C_get_tracing_stater   r   r   _is_tracingr&   B   s    8&&(((r   c                      d S r"   r   r   r   r   disable_beta_transforms_warningr(   F   s	     	Dr   )modulefinderr   r#    r   torchvisionr   r   r   r	   r
   r   r   versionr   ImportErrorr   r   r   r   r   r    r&   r(   r   r   r   <module>r.      s                Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y	$$$$$$$ 	 	 	D	     		 		 		  ) ) )	 	 	 	 	s   + 33