Compares the current Accelerate 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)
| 842 | |
| 843 | @cache |
| 844 | def is_optimum_quanto_version(operation: str, version: str): |
| 845 | """ |
| 846 | Compares the current Accelerate version to a given reference with an operation. |
| 847 | |
| 848 | Args: |
| 849 | operation (`str`): |
| 850 | A string representation of an operator, such as `">"` or `"<="` |
| 851 | version (`str`): |
| 852 | A version string |
| 853 | """ |
| 854 | if not _optimum_quanto_available: |
| 855 | return False |
| 856 | return compare_versions(parse(_optimum_quanto_version), operation, version) |
| 857 | |
| 858 | |
| 859 | @cache |
no test coverage detected
searching dependent graphs…