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:
parent
0825c826be
commit
d87634a1a4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue