Ë
    P/æj³	  ã                   ó„   — d dl mZmZ d dlmZmZ d dlmZ dgZ	 G d„ de
«      ZdD ]  Z eeeefd„«       Œ  ee«      Zy)	é    )ÚAnyÚIterable)ÚInvalidVersionÚVersion)Ú__version__ÚTorchVersionc                   ó@   ‡ — e Zd ZdZdedefd„Zdededefˆ fd„Zˆ xZ	S )r   ab  A string with magic powers to compare to both Version and iterables!
    Prior to 1.10.0 torch.__version__ was stored as a str and so many did
    comparisons against torch.__version__ as if it were a str. In order to not
    break them we have TorchVersion which masquerades as a str while also
    having the ability to compare against both packaging.version.Version as
    well as tuples of values, eg. (1, 2, 1)
    Examples:
        Comparing a TorchVersion object to a Version object
            TorchVersion('1.10.0a') > Version('1.10.0a')
        Comparing a TorchVersion object to a Tuple object
            TorchVersion('1.10.0a') > (1, 2)    # 1.2
            TorchVersion('1.10.0a') > (1, 2, 1) # 1.2.1
        Comparing a TorchVersion object against a string
            TorchVersion('1.10.0a') > '1.2'
            TorchVersion('1.10.0a') > '1.2.1'
    ÚinpÚreturnc                 óÔ   — t        |t        «      r|S t        |t        «      rt        |«      S t        |t        «      r!t        dj	                  d„ |D «       «      «      S t        |«      ‚)Nú.c              3   ó2   K  — | ]  }t        |«      –— Œ y ­w©N)Ústr)Ú.0Úitems     úV/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/torch/torch_version.pyú	<genexpr>z3TorchVersion._convert_to_version.<locals>.<genexpr>)   s   è ø€ Ò#>°$¤C¨§IÑ#>ùs   ‚)Ú
isinstancer   r   r   Újoinr   )Úselfr
   s     r   Ú_convert_to_versionz TorchVersion._convert_to_version   sV   € Ü�cœ7Ô#ØˆJÜ˜œSÔ!Ü˜3“<ÐÜ˜œXÔ&ô ˜3Ÿ8™8Ñ#>¸#Ô#>Ó>Ó?Ð?ä  Ó%Ð%ó    ÚcmpÚmethodc                 óÜ   •— 	  t        t        | «      |«      | j                  |«      «      S # t        $ r5}t	        |t
        «      s‚  t        t        «       |«      |«      cY d }~S d }~ww xY wr   )Úgetattrr   r   ÚBaseExceptionr   r   Úsuper)r   r   r   ÚeÚ	__class__s       €r   Ú_cmp_wrapperzTorchVersion._cmp_wrapper-   s`   ø€ ð	1Ø1”7œ7 4›=¨&Ó1°$×2JÑ2JÈ3Ó2OÓPÐPøÜò 	1Ü˜a¤Ô0Øð ,”7œ5›7 FÓ+¨CÓ0Õ0ûð	1ús   ƒ)- ­	A+¶*A&Á A+Á&A+)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Úboolr"   Ú__classcell__)r!   s   @r   r   r   
   s:   ø„ ñð$& sð &¨só &ð 1 ð 1¨Sð 1°T÷ 1ñ 1r   )Ú__gt__Ú__lt__Ú__eq__Ú__ge__Ú__le__c                 ó&   — | j                  ||«      S r   )r"   )ÚxÚyr   s      r   ú<lambda>r1   <   s   € ¨¯©°q¸&Ó(A€ r   N)Útypingr   r   Útorch._vendor.packaging.versionr   r   Útorch.versionr   Úinternal_versionÚ__all__r   r   Ú
cmp_methodÚsetattr© r   r   ú<module>r:      sX   ðß  ç CÝ 9ð Ð
€ô+1�3ô +1ð\ Eò €JÙØØØ&ÒAõðñ Ð+Ó,�r   