# This function was copied from: https://github.com/huggingface/accelerate/blob/874c4967d94badd24f893064cc3bef45f57cadf7/src/accelerate/utils/versions.py#L319
# This function was copied from: https://github.com/huggingface/accelerate/blob/874c4967d94badd24f893064cc3bef45f57cadf7/src/accelerate/utils/versions.py#L319
# This function was copied from: https://github.com/huggingface/accelerate/blob/874c4967d94badd24f893064cc3bef45f57cadf7/src/accelerate/utils/versions.py#L338
# This function was copied from: https://github.com/huggingface/accelerate/blob/874c4967d94badd24f893064cc3bef45f57cadf7/src/accelerate/utils/versions.py#L338
defis_torch_version(operation:str,version:str):
defis_torch_version(operation:str,version:str):
"""
"""
Args:
Compares the current PyTorch version to a given reference with an operation.
Compares the current PyTorch version to a given reference with an operation.
Args:
operation (`str`):
operation (`str`):
A string representation of an operator, such as `">"` or `"<="`
A string representation of an operator, such as `">"` or `"<="`