
    \hi                    F    S SK Jr  S SKJr  S SKrSSKJr   " S S\5      rg)    )annotations)AnyN   )TVTensorc                  R    \ rS rSrSrSSSS.         S	S jjrSS.S
S jjrSrg)Video
   a  :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_gradc               p    U R                  XX4S9nUR                  S:  a  [        eUR                  U 5      $ )Nr
      )
_to_tensorndim
ValueErroras_subclass)clsdatar   r   r   tensors         W/var/www/fran/franai/venv/lib/python3.13/site-packages/torchvision/tv_tensors/_video.py__new__Video.__new__   s8     &^99q=!!#&&    )tensor_contentsc               "    U R                  5       $ )N)
_make_repr)selfr   s     r   __repr__Video.__repr__$   s      r    )
r   r   r   ztorch.dtype | Noner   ztorch.device | str | int | Noner   zbool | Nonereturnr   )r   r   r"   str)__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__r!   r   r   r   r   
   sV    
  %)26%)'' "	'
 0' #' 
' 26 ! !r   r   )
__future__r   typingr   torch
_tv_tensorr   r   r!   r   r   <module>r.      s    "    !H !r   