§
    ÇPƒiÜ  ã                   óD   — d dl m Z  d dlZdedefd„Zd„ Zdededefd	„ZdS )
é    )ÚdatetimeNÚversionÚreturnc                 ó>   — | t           j        v pt           j        | k    S )ai  
    Check if torch version is greater than or equal to the given version.

    Args:
        version (str): The torch version to compare against

    Returns:
        bool: True if torch version is greater than or equal to the given version.

    Example:
        >>> print(torch.__version__)
        2.4.0
        >>> torch_version_ge("2.0")
        True
    )ÚtorchÚ__version__)r   s    úl/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/torchtune/utils/_version.pyÚtorch_version_ger
      s   € ð  •eÔ'Ð'ÐG­5Ô+<ÀÒ+GÐGó    c                  ó8   — t          t          j        d¦  «         S )NÚgit_version)Úhasattrr   r   © r   r	   Ú
_is_fbcoder      s   € Ý•u”} mÑ4Ô4Ð4Ð4r   Úao_version_strÚdatec                 óÂ   — t          j        |                      d¦  «        d                              d¦  «        d         d¦  «        }|t          j        |d¦  «        k    S )z¶
    Compare a torchao nightly version to a date of the form
    %Y-%m-%d.

    Returns True if the nightly version is greater than or equal to
        the date, False otherwise
    ú+r   Údevé   z%Y%m%dz%Y-%m-%d)r   ÚstrptimeÚsplit)r   r   Úao_datetimes      r	   Ú_nightly_version_ger   #   s[   € õ Ô#Ø×Ò˜SÑ!Ô! !Ô$×*Ò*¨5Ñ1Ô1°!Ô4°hñô €Kð (Ô+¨D°*Ñ=Ô=Ò=Ð=r   )r   r   ÚstrÚboolr
   r   r   r   r   r	   ú<module>r      sŒ   ðð Ð Ð Ð Ð Ð à €€€ðH˜cð H dð Hð Hð Hð Hð&5ð 5ð 5ð>¨ð >°3ð >¸4ð >ð >ð >ð >ð >ð >r   