Skip to content

Commit

Permalink
Merge branch 'master' into deprecate/num_outputs_r2
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Sep 11, 2024
2 parents 3312a44 + f12e7af commit 9c9f3c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/torchmetrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
if not hasattr(PIL, "PILLOW_VERSION"):
PIL.PILLOW_VERSION = PIL.__version__

if package_available("scipy"):
import scipy.signal

# back compatibility patch due to SMRMpy using scipy.signal.hamming
if not hasattr(scipy.signal, "hamming"):
scipy.signal.hamming = scipy.signal.windows.hamming

from torchmetrics import functional # noqa: E402
from torchmetrics.aggregation import ( # noqa: E402
CatMetric,
Expand Down

0 comments on commit 9c9f3c8

Please sign in to comment.