Args: Compares the current k-diffusion version to a given reference with an operation. operation (`str`): A string representation of an operator, such as `">"` or `"<="` version (`str`): A version string
(operation: str, version: str)
| 629 | |
| 630 | |
| 631 | def is_k_diffusion_version(operation: str, version: str): |
| 632 | """ |
| 633 | Args: |
| 634 | Compares the current k-diffusion version to a given reference with an operation. |
| 635 | operation (`str`): |
| 636 | A string representation of an operator, such as `">"` or `"<="` |
| 637 | version (`str`): |
| 638 | A version string |
| 639 | """ |
| 640 | if not _k_diffusion_available: |
| 641 | return False |
| 642 | return compare_versions(parse(_k_diffusion_version), operation, version) |
| 643 | |
| 644 | |
| 645 | def get_objects_from_module(module): |
no test coverage detected