
    %`ii                    N    d dl mZ d dlmZ d dlZddlmZ  G d de          ZdS )    )annotations)AnyN   )TVTensorc                  2    e Zd ZdZddddddZddddZdS )Videoa  :class:`torch.Tensor` subclass for videos with shape ``[..., T, C, H, W]``.

    Args:
        data (tensor-like): Any data that can be turned into a tensor with :func:`torch.as_tensor`.
        dtype (torch.dtype, optional): Desired data type. If omitted, will be inferred from
            ``data``.
        device (torch.device, optional): Desired device. If omitted and ``data`` is a
            :class:`torch.Tensor`, the device is taken from it. Otherwise, the video is constructed on the CPU.
        requires_grad (bool, optional): Whether autograd should record operations. If omitted and
            ``data`` is a :class:`torch.Tensor`, the value is taken from it. Otherwise, defaults to ``False``.
    Ndtypedevicerequires_graddatar   r
   torch.dtype | Noner   torch.device | str | int | Noner   bool | Nonereturnc                   |                      ||||          }|j        dk     rt          |                    |           S )Nr	      )
_to_tensorndim
ValueErroras_subclass)clsr   r
   r   r   tensors         q/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/torchvision/tv_tensors/_video.py__new__zVideo.__new__   sC     E&P]^^9q==!!#&&&    )tensor_contentsr   strc               *    |                                  S )N)
_make_repr)selfr   s     r   __repr__zVideo.__repr__$   s       r   )
r   r   r
   r   r   r   r   r   r   r   )r   r   r   r   )__name__
__module____qualname____doc__r   r"    r   r   r   r   
   sj        
 
  %)26%)' ' ' ' ' ' 26 ! ! ! ! ! ! ! !r   r   )
__future__r   typingr   torch
_tv_tensorr   r   r'   r   r   <module>r,      sx    " " " " " "                   ! ! ! ! !H ! ! ! ! !r   