Skip to content

Commit

Permalink
Fix using G before assignment in pruned_transducer_stateless/decode.py (
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Jul 26, 2022
1 parent b1d0956 commit 4612b03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions egs/librispeech/ASR/pruned_transducer_stateless3/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ def main():
model.device = device
model.unk_id = params.unk_id

G = None
if "fast_beam_search" in params.decoding_method:
if params.decoding_method == "fast_beam_search_nbest_LG":
lexicon = Lexicon(params.lang_dir)
Expand Down

0 comments on commit 4612b03

Please sign in to comment.