Skip to content

Commit 4faa076

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e31aa3f commit 4faa076

File tree

1 file changed

+1
-1
lines changed
  • src/torchmetrics/functional/text

1 file changed

+1
-1
lines changed

src/torchmetrics/functional/text/squad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _metric_max_over_ground_truths(
8787
metric_fn: Callable[[str, str], Tensor], prediction: str, ground_truths: list[str]
8888
) -> Tensor:
8989
"""Calculate maximum score for a predicted answer with all reference answers."""
90-
return max(metric_fn(prediction, truth) for truth in ground_truths)
90+
return max(metric_fn(prediction, truth) for truth in ground_truths)
9191

9292

9393
def _squad_input_check(

0 commit comments

Comments
 (0)