Returns: tuple of ints represents the pytorch major/minor version.
()
| 502 | |
| 503 | @functools.lru_cache(None) |
| 504 | def get_torch_version_tuple(): |
| 505 | """ |
| 506 | Returns: |
| 507 | tuple of ints represents the pytorch major/minor version. |
| 508 | """ |
| 509 | return tuple(int(x) for x in torch.__version__.split(".")[:2]) |
| 510 | |
| 511 | |
| 512 | def parse_version_strs(lhs: str, rhs: str) -> tuple[Iterable[int | str], Iterable[int | str]]: |
no test coverage detected
searching dependent graphs…