From 6fcc97f774b6f90bcf4a390d184eab837793134a Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Tue, 16 Jul 2024 16:19:53 +0330 Subject: [PATCH] Remove @override which is for 3.12 --- .../vision/object_detection_average_precision_recall.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ignite/metrics/vision/object_detection_average_precision_recall.py b/ignite/metrics/vision/object_detection_average_precision_recall.py index 0c4a75223cd..700abae36f0 100644 --- a/ignite/metrics/vision/object_detection_average_precision_recall.py +++ b/ignite/metrics/vision/object_detection_average_precision_recall.py @@ -1,4 +1,4 @@ -from typing import Callable, cast, Dict, List, Optional, override, Sequence, Tuple, Union +from typing import Callable, cast, Dict, List, Optional, Sequence, Tuple, Union import torch from typing_extensions import Literal @@ -213,7 +213,6 @@ def _compute_recall_and_precision( return recall, precision - @override def _compute_average_precision(self, recall: torch.Tensor, precision: torch.Tensor) -> torch.Tensor: """Measuring average precision. This method is overriden since :math:`1/#recall_thresholds` is used instead of :math:`r_k - r_{k-1}`