---
title: "torchmetrics 1.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each torchmetrics release removed, renamed or changed: 1,329 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/torchmetrics
last_updated: 2026-12-04
---

# torchmetrics breaking changes

torchmetrics 1.0.0 (November 3, 2020) is its newest release with breaking changes, 344 of them. The first: torchmetrics 1.0.0 drops support for Python 3.7. Every breaking API change we have recorded in torchmetrics on PyPI: 1,329 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.9.0`, released March 9, 2026. 

Its 1.0.0 release drops [Python 3.7](https://since.dev/calendar/python/3.7.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.11.0](#v-0-11-0) to [1.0.0](#v-1-0-0): 344 breaking changes in 1 version.
- From [0.10.0](#v-0-10-0) to [1.0.0](#v-1-0-0): 1,269 breaking changes in 2 versions.

## torchmetrics 1.0.0 breaking changes

torchmetrics 1.0.0, released November 3, 2020: 344 breaking changes.

- **Removed**  

Python 3.7 is no longer supported; upgrade the Python runtime before installing this release. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Removed** `torchmetrics.audio.PerceptualEvaluationSpeechQuality`  

torchmetrics.audio.PerceptualEvaluationSpeechQuality was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.audio.ShortTimeObjectiveIntelligibility`  

torchmetrics.audio.ShortTimeObjectiveIntelligibility was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.MatchErrorRate.error`  

MatchErrorRate.error was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.RetrievalFallOut.k`  

RetrievalFallOut.k was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.RetrievalHitRate.k`  

RetrievalHitRate.k was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.RetrievalNormalizedDCG.k`  

RetrievalNormalizedDCG.k was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.RetrievalPrecision.k`  

RetrievalPrecision.k was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.RetrievalRecall.k`  

RetrievalRecall.k was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Removed** `torchmetrics.UniversalImageQualityIndex.data_range`  

UniversalImageQualityIndex.data_range was removed in torchmetrics 1.0.0 [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Renamed** `update_count`  

Methods formerly private are now public; code relying on the private names may need to be updated. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `__iter__`  

Iterating over a metric now raises TypeError rather than NotImplementedError; code catching the old exception must change. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `FID`  

FID now raises an error if too few samples are given instead of proceeding. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `LPIPS`  

LPIPS is now implemented internally rather than through a third-party package, which may change its results or dependencies. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `MeanAveragePrecision`  

MeanAveragePrecision now uses the pycocotools backend, which may change computed values. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `Metric`  

Invalid keyword arguments passed to the Metric base class now raise an exception. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `PearsonCorrCoef`  

The calculation in PearsonCorrCoef changed in certain cases, which may alter returned values. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Behavior changed** `permutation_invariant_training`  

permutation_invariant_training now also accepts a 'permutation-wise' metric function, which changes how the metric argument is interpreted. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.0.0)
- **Signature changed** `torchmetrics.audio.pit.permutation_invariant_training`  

Was def permutation_invariant_training(preds: Tensor, target: Tensor, metric_func: Callable, eval_func: Literal\['max', 'min'\] = 'max', \*\*kwargs: Any) -> Tuple\[Tensor, Tensor\]; now def permutation_invariant_training(preds: Tensor, target... [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.BLEUScore`  

Was class BLEUScore(Metric); now class \_BLEUScore(BLEUScore). [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.CalibrationError.__new__`  

Was def \_\_new\_\_(cls, task: Literal\['binary', 'multiclass'\] = None, n_bins: int = 15, norm: Literal\['l1', 'l2', 'max'\] = 'l1', num_classes: Optional\[int\] = None, ignore_index: Optional\[int\] = None, validate_args: bool = True, \*\*kwargs: Any)... [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.CharErrorRate`  

Was class CharErrorRate(Metric); now class \_CharErrorRate(CharErrorRate). [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.CHRFScore`  

Was class CHRFScore(Metric); now class \_CHRFScore(CHRFScore). [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__abs__`  

Was def \_\_abs\_\_(self) -> Metric; now def \_\_abs\_\_(self) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__add__`  

Was def \_\_add\_\_(self, other: Metric) -> Metric; now def \_\_add\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__and__`  

Was def \_\_and\_\_(self, other: Metric) -> Metric; now def \_\_and\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__eq__`  

Was def \_\_eq\_\_(self, other: Metric) -> Metric; now def \_\_eq\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__floordiv__`  

Was def \_\_floordiv\_\_(self, other: Metric) -> Metric; now def \_\_floordiv\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__ge__`  

Was def \_\_ge\_\_(self, other: Metric) -> Metric; now def \_\_ge\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__getitem__`  

Was def \_\_getitem\_\_(self, idx: int) -> Metric; now def \_\_getitem\_\_(self, idx: int) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__gt__`  

Was def \_\_gt\_\_(self, other: Metric) -> Metric; now def \_\_gt\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__inv__`  

Was def \_\_inv\_\_(self) -> Metric; now def \_\_inv\_\_(self) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__invert__`  

Was def \_\_invert\_\_(self) -> Metric; now def \_\_invert\_\_(self) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__iter__`  

Was def \_\_iter\_\_(self); now \_\_iter\_\_. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__le__`  

Was def \_\_le\_\_(self, other: Metric) -> Metric; now def \_\_le\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__lt__`  

Was def \_\_lt\_\_(self, other: Metric) -> Metric; now def \_\_lt\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__matmul__`  

Was def \_\_matmul\_\_(self, other: Metric) -> Metric; now def \_\_matmul\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__mod__`  

Was def \_\_mod\_\_(self, other: Metric) -> Metric; now def \_\_mod\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__mul__`  

Was def \_\_mul\_\_(self, other: Metric) -> Metric; now def \_\_mul\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__ne__`  

Was def \_\_ne\_\_(self, other: Metric) -> Metric; now def \_\_ne\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__neg__`  

Was def \_\_neg\_\_(self) -> Metric; now def \_\_neg\_\_(self) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__or__`  

Was def \_\_or\_\_(self, other: Metric) -> Metric; now def \_\_or\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__pos__`  

Was def \_\_pos\_\_(self) -> Metric; now def \_\_pos\_\_(self) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__pow__`  

Was def \_\_pow\_\_(self, other: Metric) -> Metric; now def \_\_pow\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__radd__`  

Was def \_\_radd\_\_(self, other: Metric) -> Metric; now def \_\_radd\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__rand__`  

Was def \_\_rand\_\_(self, other: Metric) -> Metric; now def \_\_rand\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__rfloordiv__`  

Was def \_\_rfloordiv\_\_(self, other: Metric) -> Metric; now def \_\_rfloordiv\_\_(self, other: CompositionalMetric) -> Metric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__rmatmul__`  

Was def \_\_rmatmul\_\_(self, other: Metric) -> Metric; now def \_\_rmatmul\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__rmod__`  

Was def \_\_rmod\_\_(self, other: Metric) -> Metric; now def \_\_rmod\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)
- **Signature changed** `torchmetrics.classification.BinaryStatScores.__rmul__`  

Was def \_\_rmul\_\_(self, other: Metric) -> Metric; now def \_\_rmul\_\_(self, other: Union\[Metric, int, builtins.float, Tensor\]) -> CompositionalMetric. [pypi.org](https://pypi.org/project/torchmetrics/1.0.0/)

And 294 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## torchmetrics 0.11.0 breaking changes

torchmetrics 0.11.0, released November 30, 2022: 925 breaking changes.

- **Removed** `KLDivergence`  

KLDivergence was removed; code using it will fail and must be updated. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v0.11.0)
- **Removed** `RecallAtFixedPrecision`  

RecallAtFixedPrecision was removed; code using it will fail and must be updated. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v0.11.0)
- **Removed** `torchmetrics.Accuracy.__init__`  

Accuracy() was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.average`  

Accuracy.average was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.correct`  

Accuracy.correct was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.higher_is_better`  

Accuracy.higher_is_better was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.is_differentiable`  

Accuracy.is_differentiable was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.mode`  

Accuracy.mode was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.subset_accuracy`  

Accuracy.subset_accuracy was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)
- **Removed** `torchmetrics.Accuracy.total`  

Accuracy.total was removed in torchmetrics 0.11.0 [pypi.org](https://pypi.org/project/torchmetrics/0.11.0/)

And 915 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## torchmetrics 0.10.0 breaking changes

torchmetrics 0.10.0, released October 4, 2022: 60 breaking changes.

- **Removed** `integrations`  

integrations was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `num_classes`  

num_classes is removed from all binary\_\* metrics; users of binary tasks must stop passing it. [github.com](https://github.com/Lightning-AI/torchmetrics/releases/tag/v0.10.0)
- **Removed** `torchmetrics.classification.avg_precision`  

torchmetrics.classification.avg_precision was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.classification.kl_divergence.dim_zero_cat`  

torchmetrics.classification.kl_divergence.dim_zero_cat was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.classification.kl_divergence.Metric`  

torchmetrics.classification.kl_divergence.Metric was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.classification.KLDivergence`  

torchmetrics.classification.KLDivergence was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.image.fid.dim_zero_cat`  

torchmetrics.image.fid.dim_zero_cat was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.image.fid.rank_zero_warn`  

torchmetrics.image.fid.rank_zero_warn was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.image.FrechetInceptionDistance.fake_features`  

FrechetInceptionDistance.fake_features was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)
- **Removed** `torchmetrics.image.FrechetInceptionDistance.real_features`  

FrechetInceptionDistance.real_features was removed in torchmetrics 0.10.0 [pypi.org](https://pypi.org/project/torchmetrics/0.10.0/)

And 50 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
