Skip to content

Commit

Permalink
Fix type for lm parameter in decoder (pytorch#2273)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#2273

Reviewed By: mthrok

Differential Revision: D34799335

Pulled By: carolineechen

fbshipit-source-id: d0eea79448efdbd84758a3f433ab9350b4c94e91
  • Loading branch information
Caroline Chen authored and xiaohui-zhang committed May 4, 2022
1 parent a8906e7 commit 688f752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchaudio/prototype/ctc_decoder/ctc_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def idxs_to_tokens(self, idxs: torch.LongTensor) -> List:
def lexicon_decoder(
lexicon: str,
tokens: Union[str, List[str]],
lm: str = None,
lm: Optional[str] = None,
nbest: int = 1,
beam_size: int = 50,
beam_size_token: Optional[int] = None,
Expand Down

0 comments on commit 688f752

Please sign in to comment.