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)
| 746 | |
| 747 | |
| 748 | def 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 | |
| 763 | def get_objects_from_module(module): |
no test coverage detected