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
On this page
Latest version 1.9.0, released March 9, 2026.
Its 1.0.0 release drops Python 3.7. Python end of life dates.
- From 0.11.0 to 1.0.0: 344 breaking changes in 1 version.
- From 0.10.0 to 1.0.0: 1,269 breaking changes in 2 versions.
torchmetrics 1.0.0 breaking changes
- Removed
Python 3.7 is no longer supported; upgrade the Python runtime before installing this release. github.com - Removed
torchmetrics.audio.PerceptualEvaluationSpeechQuality
torchmetrics.audio.PerceptualEvaluationSpeechQuality was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.audio.ShortTimeObjectiveIntelligibility
torchmetrics.audio.ShortTimeObjectiveIntelligibility was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.MatchErrorRate.error
MatchErrorRate.error was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.RetrievalFallOut.k
RetrievalFallOut.k was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.RetrievalHitRate.k
RetrievalHitRate.k was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.RetrievalNormalizedDCG.k
RetrievalNormalizedDCG.k was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.RetrievalPrecision.k
RetrievalPrecision.k was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.RetrievalRecall.k
RetrievalRecall.k was removed in torchmetrics 1.0.0 pypi.org - Removed
torchmetrics.UniversalImageQualityIndex.data_range
UniversalImageQualityIndex.data_range was removed in torchmetrics 1.0.0 pypi.org - Renamed
update_count
Methods formerly private are now public; code relying on the private names may need to be updated. github.com - Behavior changed
__iter__
Iterating over a metric now raises TypeError rather than NotImplementedError; code catching the old exception must change. github.com - Behavior changed
FID
FID now raises an error if too few samples are given instead of proceeding. github.com - Behavior changed
LPIPS
LPIPS is now implemented internally rather than through a third-party package, which may change its results or dependencies. github.com - Behavior changed
MeanAveragePrecision
MeanAveragePrecision now uses the pycocotools backend, which may change computed values. github.com - Behavior changed
Metric
Invalid keyword arguments passed to the Metric base class now raise an exception. github.com - Behavior changed
PearsonCorrCoef
The calculation in PearsonCorrCoef changed in certain cases, which may alter returned values. github.com - 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 - 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 - Signature changed
torchmetrics.BLEUScore
Was class BLEUScore(Metric); now class _BLEUScore(BLEUScore). pypi.org - 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 - Signature changed
torchmetrics.CharErrorRate
Was class CharErrorRate(Metric); now class _CharErrorRate(CharErrorRate). pypi.org - Signature changed
torchmetrics.CHRFScore
Was class CHRFScore(Metric); now class _CHRFScore(CHRFScore). pypi.org - Signature changed
torchmetrics.classification.BinaryStatScores.__abs__
Was def __abs__(self) -> Metric; now def __abs__(self) -> CompositionalMetric. pypi.org - 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 - 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 - 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 - 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 - 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 - Signature changed
torchmetrics.classification.BinaryStatScores.__getitem__
Was def __getitem__(self, idx: int) -> Metric; now def __getitem__(self, idx: int) -> CompositionalMetric. pypi.org - 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 - Signature changed
torchmetrics.classification.BinaryStatScores.__inv__
Was def __inv__(self) -> Metric; now def __inv__(self) -> CompositionalMetric. pypi.org - Signature changed
torchmetrics.classification.BinaryStatScores.__invert__
Was def __invert__(self) -> Metric; now def __invert__(self) -> CompositionalMetric. pypi.org - Signature changed
torchmetrics.classification.BinaryStatScores.__iter__
Was def __iter__(self); now __iter__. pypi.org - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
torchmetrics.classification.BinaryStatScores.__neg__
Was def __neg__(self) -> Metric; now def __neg__(self) -> CompositionalMetric. pypi.org - 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 - Signature changed
torchmetrics.classification.BinaryStatScores.__pos__
Was def __pos__(self) -> Metric; now def __pos__(self) -> CompositionalMetric. pypi.org - 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 - 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 - 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 - Signature changed
torchmetrics.classification.BinaryStatScores.__rfloordiv__
Was def __rfloordiv__(self, other: Metric) -> Metric; now def __rfloordiv__(self, other: CompositionalMetric) -> Metric. pypi.org - 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 - 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 - 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
And 294 more in this version. Sign up to see every change
torchmetrics 0.11.0 breaking changes
- Removed
KLDivergence
KLDivergence was removed; code using it will fail and must be updated. github.com - Removed
RecallAtFixedPrecision
RecallAtFixedPrecision was removed; code using it will fail and must be updated. github.com - Removed
torchmetrics.Accuracy.__init__
Accuracy() was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.average
Accuracy.average was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.correct
Accuracy.correct was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.higher_is_better
Accuracy.higher_is_better was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.is_differentiable
Accuracy.is_differentiable was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.mode
Accuracy.mode was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.subset_accuracy
Accuracy.subset_accuracy was removed in torchmetrics 0.11.0 pypi.org - Removed
torchmetrics.Accuracy.total
Accuracy.total was removed in torchmetrics 0.11.0 pypi.org
And 915 more in this version. Sign up to see every change
torchmetrics 0.10.0 breaking changes
- Removed
integrations
integrations was removed in torchmetrics 0.10.0 pypi.org - Removed
num_classes
num_classes is removed from all binary_* metrics; users of binary tasks must stop passing it. github.com - Removed
torchmetrics.classification.avg_precision
torchmetrics.classification.avg_precision was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.classification.kl_divergence.dim_zero_cat
torchmetrics.classification.kl_divergence.dim_zero_cat was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.classification.kl_divergence.Metric
torchmetrics.classification.kl_divergence.Metric was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.classification.KLDivergence
torchmetrics.classification.KLDivergence was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.image.fid.dim_zero_cat
torchmetrics.image.fid.dim_zero_cat was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.image.fid.rank_zero_warn
torchmetrics.image.fid.rank_zero_warn was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.image.FrechetInceptionDistance.fake_features
FrechetInceptionDistance.fake_features was removed in torchmetrics 0.10.0 pypi.org - Removed
torchmetrics.image.FrechetInceptionDistance.real_features
FrechetInceptionDistance.real_features was removed in torchmetrics 0.10.0 pypi.org
And 50 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.