o
    öXœi5  ã                   @  sD   d Z ddlmZ ddlZddd	„Zdd
d„Zddd„Zddd„ZdS )zVersion utils for testing.é    )ÚannotationsNÚversionÚstrÚreturnÚboolc                 C  ó&   ddl }tj |j¡jtj | ¡jk S )zAReturns True if the ONNX version is older than the given version.r   N)ÚonnxÚ	packagingr   ÚparseÚ__version__Úrelease)r   r   © r   úJ/home/ubuntu/.local/lib/python3.10/site-packages/onnx_ir/_version_utils.pyÚonnx_older_than   ó
   ÿÿr   c                 C  r   )zBReturns True if the torch version is older than the given version.r   N)Útorchr	   r   r
   r   r   )r   r   r   r   r   Útorch_older_than   r   r   c                 C  r   )zHReturns True if the onnxruntime version is older than the given version.r   N)Úonnxruntimer	   r   r
   r   r   )r   r   r   r   r   Úonnxruntime_older_than   r   r   c                 C  r   )zBReturns True if the numpy version is older than the given version.r   N)Únumpyr	   r   r
   r   r   )r   r   r   r   r   Únumpy_older_than)   r   r   )r   r   r   r   )	Ú__doc__Ú
__future__r   Úpackaging.versionr	   r   r   r   r   r   r   r   r   Ú<module>   s   





