Ë
    øÿæiâ	  ã                   óŒ   — d dl mZ d dl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	)
é    )ÚIterable)ÚAny)ÚInvalidVersionÚVersion)Ú__version__ÚTorchVersionc                   óD   ‡ — e Zd 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     úh/Volumes/fast/ai/experiments/voice-extract-mac/.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_wrapper0   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__Ú	__slots__r   r   r   Úboolr#   Ú__classcell__)r"   s   @r   r   r      sA   ø„ ñð" €Ið& sð &¨só &ð 1 ð 1¨Sð 1°T÷ 1ñ 1r   )Ú__gt__Ú__lt__Ú__eq__Ú__ge__Ú__le__c                 ó&   — | j                  ||«      S r   )r#   )ÚxÚyr   s      r   Ú<lambda>r3   ?   s   € ¨¯©°q¸&Ô(Ar   N)Úcollections.abcr   Útypingr   Útorch._vendor.packaging.versionr   r   Útorch.versionr   Úinternal_versionÚ__all__r   r   Ú
cmp_methodÚsetattrr
   r   r   Ú<module>r<      sW   ðÝ $Ý ç CÝ 9ð Ð
€ô-1�3ô -1ó` E€JÙØØØ&ÒAõð Eñ Ð+Ó,�r   