Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Oct 31, 2024
1 parent 043ca6b commit bd84496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchmetrics/utilities/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def _adjust_weights_safe_divide(
tp: Tensor,
fp: Tensor,
fn: Tensor,
ignore_index: Optional[int] = None,
top_k: int = 1,
ignore_index: Optional[int] = None,
) -> Tensor:
if average is None or average == "none":
return score
Expand Down

0 comments on commit bd84496

Please sign in to comment.