Skip to content

Commit

Permalink
Remove @OverRide which is for 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin committed Jul 16, 2024
1 parent a184ba5 commit 6fcc97f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}`
Expand Down

0 comments on commit 6fcc97f

Please # to comment.