Ë
    P/æjê  ã                   ó8   — d dl mZ d dlmZ dgZ G d„ de«      Zy)é    )Úconstraints)ÚGammaÚChi2c                   ó\   ‡ — e Zd ZdZdej
                  iZdˆ fd„	Zdˆ fd„	Ze	d„ «       Z
ˆ xZS )r   a³  
    Creates a Chi-squared distribution parameterized by shape parameter :attr:`df`.
    This is exactly equivalent to ``Gamma(alpha=0.5*df, beta=0.5)``

    Example::

        >>> # xdoctest: +IGNORE_WANT("non-deterministic")
        >>> m = Chi2(torch.tensor([1.0]))
        >>> m.sample()  # Chi2 distributed with shape df=1
        tensor([ 0.1046])

    Args:
        df (float or Tensor): shape parameter of the distribution
    Údfc                 ó0   •— t         ‰| �  d|z  d|¬«       y )Ng      à?)Úvalidate_args)ÚsuperÚ__init__)Úselfr   r	   Ú	__class__s      €ú[/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/torch/distributions/chi2.pyr   zChi2.__init__   s   ø€ Ü‰Ñ˜˜r™ 3°mÐÕDó    c                 óP   •— | j                  t        |«      }t        ‰| �  ||«      S ©N)Ú_get_checked_instancer   r
   Úexpand)r   Úbatch_shapeÚ	_instanceÚnewr   s       €r   r   zChi2.expand   s&   ø€ Ø×(Ñ(¬¨yÓ9ˆÜ‰w‰~˜k¨3Ó/Ð/r   c                 ó    — | j                   dz  S )Né   )Úconcentration)r   s    r   r   zChi2.df!   s   € à×!Ñ! AÑ%Ð%r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚpositiveÚarg_constraintsr   r   Úpropertyr   Ú__classcell__)r   s   @r   r   r   	   s9   ø„ ñð ˜[×1Ñ1Ð2€OõEõ0ð ñ&ó ô&r   N)Útorch.distributionsr   Útorch.distributions.gammar   Ú__all__r   © r   r   ú<module>r&      s    ðå +Ý +ð ˆ(€ô&ˆ5õ &r   