MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / is_k_diffusion_version

Function is_k_diffusion_version

diffusers/src/diffusers/utils/import_utils.py:748–760  ·  view source on GitHub ↗

Compares the current k-diffusion 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

746
747
748def is_k_diffusion_version(operation: str, version: str):
749 """
750 Compares the current k-diffusion version to a given reference with an operation.
751
752 Args:
753 operation (`str`):
754 A string representation of an operator, such as `">"` or `"<="`
755 version (`str`):
756 A version string
757 """
758 if not _k_diffusion_available:
759 return False
760 return compare_versions(parse(_k_diffusion_version), operation, version)
761
762
763def get_objects_from_module(module):

Callers 1

__init__.pyFile · 0.85

Calls 1

compare_versionsFunction · 0.85

Tested by

no test coverage detected