Skip to content

Commit ca13f77

Browse files
authored
drop duplicated torchmetrics requirement from Fabric's testing (#20675)
1 parent 5cc8471 commit ca13f77

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

requirements/fabric/test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ pytest-rerunfailures ==12.0
77
pytest-random-order ==1.1.0
88
click ==8.1.7
99
tensorboardX >=2.2, <2.7.0 # min version is set by torch.onnx missing attribute
10-
torchmetrics >=0.7.0, <1.5.0 # needed for using fixed compare_version

requirements/pytorch/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ torch >=2.1.0, <2.6.0
55
tqdm >=4.57.0, <4.67.0
66
PyYAML >=5.4, <6.1.0
77
fsspec[http] >=2022.5.0, <2024.4.0
8-
torchmetrics >=0.7.0, <1.5.0 # needed for using fixed compare_version
8+
torchmetrics >=0.7.0, <1.5.0
99
packaging >=20.0, <=23.1
1010
typing-extensions >=4.4.0, <4.11.0
1111
lightning-utilities >=0.10.0, <0.12.0

src/lightning/fabric/utilities/spike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
from torchmetrics.aggregation import MeanMetric
5353
from torchmetrics.wrappers import Running
5454
else:
55-
raise RuntimeError("SpikeDetection requires torchmetrics>=1.0.0! Please upgrade your version!")
55+
raise RuntimeError("SpikeDetection requires `torchmetrics>=1.0.0` Please upgrade your version.")
5656
super().__init__()
5757

5858
self.last_val: Union[torch.Tensor, float] = 0.0

0 commit comments

Comments
 (0)