pypi torchmetrics 1.9.0
Release v1.9.0

one hour ago

[1.9.0] - 2026-03-06

Changed

  • Defaulting Dice score average="macro" (#3042)
  • Dropped Python 3.9 support, set 3.10 as minimum (#3330)
  • Replaced pkg_resources with packaging (#3329)

Fixed

  • Fixed device mismatch in Metric base class (#3316)
  • Fixed n-d slicing deprecation warning (#3319)
  • Fixed tensor copy warning in logAUC (#3295)
  • Fixed memory issues when computing retrieval metrics with high-valued indices (#3291)
  • Fixed race condition in _safe_divide by creating tensor directly on device (#3284)

Key Contributors

@adaliaramon, @bhimrazy, @GdoongMathew, @Isalia20, @KyleMylonakisProtopia, @VijayVignesh1

New Contributors

If we forgot someone due to not matching commit email with GitHub account, let us know :]


Full Changelog: v1.8.0...v1.9.0

Don't miss a new torchmetrics release

NewReleases is sending notifications on new releases.