Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 19, 2021
1 parent 7c466bb commit 6284f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmetrics/text/bleu.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, n_gram: int = 4, smooth: bool = False):
self.add_state("numerator", torch.zeros(self.n_gram), dist_reduce_fx="sum")
self.add_state("denominator", torch.zeros(self.n_gram), dist_reduce_fx="sum")

def update(
def update( # type: ignore
self, reference_corpus: Sequence[Sequence[Sequence[str]]], translate_corpus: Sequence[Sequence[str]]
) -> None:
"""
Expand Down

0 comments on commit 6284f6a

Please sign in to comment.