U
    zh                     @   s.   d Z ddlZddlmZ dd Zedd dS )z'Adds docstrings to torch.Size functions    N)_add_docstrc                 C   s   t ttjj| | d S )N)
add_docstrgetattrtorchZ_CSize)methodZdocstr r   B/var/www/html/venv/lib/python3.8/site-packages/torch/_size_docs.pyadd_docstr_all   s    r
   Znumelay  
numel() -> int

Returns the number of elements a :class:`torch.Tensor` with the given size would contain.

More formally, for a tensor ``x = tensor.ones(10, 10)`` with size ``s = torch.Size([10, 10])``,
``x.numel() == x.size().numel() == s.numel() == 100`` holds true.

Example::
    >>> x=torch.ones(10, 10)
    >>> s=x.size()
    >>> s
    torch.Size([10, 10])
    >>> s.numel()
    100
    >>> x.numel() == s.numel()
    True


.. warning::

    This function does not return the number of dimensions described by :class:`torch.Size`, but instead the number
    of elements a :class:`torch.Tensor` with that size would contain.

)__doc__Ztorch._Cr   r   r   r
   r   r   r   r	   <module>   s   