MCPcopy Index your code
hub / github.com/huggingface/diffusers / is_aiter_version

Function is_aiter_version

src/diffusers/utils/import_utils.py:924–936  ·  view source on GitHub ↗

Compares the current aiter version to a given reference with an operation. Args: operation (`str`): A string representation of an operator, such as `">"` or `"<="` version (`str`): A version string

(operation: str, version: str)

Source from the content-addressed store, hash-verified

922
923@cache
924def is_aiter_version(operation: str, version: str):
925 """
926 Compares the current aiter version to a given reference with an operation.
927
928 Args:
929 operation (`str`):
930 A string representation of an operator, such as `">"` or `"<="`
931 version (`str`):
932 A version string
933 """
934 if not _aiter_available:
935 return False
936 return compare_versions(parse(_aiter_version), operation, version)
937
938
939def get_objects_from_module(module):

Callers 1

Calls 1

compare_versionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…