Skip to content

Commit

Permalink
Fix wrong member naming in cer/wer (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki authored Nov 23, 2022
1 parent cf013b5 commit 6dc67df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/torchmetrics/text/cer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CharErrorRate(Metric):
higher_is_better: bool = False
full_state_update: bool = False

error: Tensor
errors: Tensor
total: Tensor

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion src/torchmetrics/text/wer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class WordErrorRate(Metric):
higher_is_better: bool = False
full_state_update: bool = False

error: Tensor
errors: Tensor
total: Tensor

def __init__(
Expand Down

0 comments on commit 6dc67df

Please sign in to comment.