From 2a055f5594a624685e26ba64bf20ab0d12225c86 Mon Sep 17 00:00:00 2001 From: Jirka Date: Wed, 16 Nov 2022 10:20:53 +0100 Subject: [PATCH] releasing 0.10.3 --- CHANGELOG.md | 6 +----- src/torchmetrics/__about__.py | 2 +- src/torchmetrics/metric.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b7e14356de..a3812001bf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,16 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 **Note: we move fast, but still we preserve 0.1 version (one feature release) back compatibility.** -## [unReleased] - 2022-MM-DD +## [0.10.3] - 2022-11-16 ### Fixed - Fixed bug in `Metrictracker.best_metric` when `return_step=False` ([#1306](https://github.com/Lightning-AI/metrics/pull/1306)) - - - Fixed bug to prevent users from going into a infinite loop if trying to iterate of a single metric ([#1320](https://github.com/Lightning-AI/metrics/pull/1320)) - - - Fixed bug in `Metrictracker.best_metric` when `return_step=False` ([#1306](https://github.com/Lightning-AI/metrics/pull/1306)) diff --git a/src/torchmetrics/__about__.py b/src/torchmetrics/__about__.py index d6852ec80e3..75d98a9d6b8 100644 --- a/src/torchmetrics/__about__.py +++ b/src/torchmetrics/__about__.py @@ -1,4 +1,4 @@ -__version__ = "0.10.2" +__version__ = "0.10.3" __author__ = "Lightning-AI et al." __author_email__ = "name@pytorchlightning.ai" __license__ = "Apache-2.0" diff --git a/src/torchmetrics/metric.py b/src/torchmetrics/metric.py index 11b898e2221..fc7a7859e04 100644 --- a/src/torchmetrics/metric.py +++ b/src/torchmetrics/metric.py @@ -851,7 +851,7 @@ def __getitem__(self, idx: int) -> "Metric": def __getnewargs__(self) -> Tuple: return (Metric.__str__(self),) - def __iter__(self): + def __iter__(self) -> Any: raise NotImplementedError("Metrics does not support iteration.")