Update torchmetrics requirement from <0.12.0,>=0.10.0 to >=0.10.0,<1.1.0 in /requirements (#18353)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2023-08-21 18:27:32 +02:00 committed by GitHub
parent 0825c826be
commit d87634a1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
torchvision >=0.12.0, <=0.15.2
torchmetrics >=0.10.0, <0.12.0
torchmetrics >=0.10.0, <1.1.0
lightning-utilities >=0.8.0, <0.10.0

View File

@ -3,5 +3,5 @@
torchvision >=0.12.0, <=0.15.2
gym[classic_control] >=0.17.0, <0.26.3
ipython[all] <8.14.1
torchmetrics >=0.10.0, <0.12.0
torchmetrics >=0.10.0, <1.1.0
lightning-utilities >=0.7.0, <0.10.0

View File

@ -17,7 +17,7 @@ def compare_version(package: str, op: Callable, version: str, use_base_version:
# https://github.com/Lightning-AI/metrics/blob/v0.7.3/torchmetrics/metric.py#L96
with contextlib.suppress(AttributeError):
if hasattr(torchmetrics.utilities.imports, "_compare_version"):
torchmetrics.utilities.imports._compare_version = compare_version # type: ignore
torchmetrics.utilities.imports._compare_version = compare_version
with contextlib.suppress(AttributeError):
if hasattr(torchmetrics.metric, "_compare_version"):