mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Fix using G before assignment in pruned_transducer_stateless/decode.py (#494)
This commit is contained in:
parent
b1d0956855
commit
4612b03947
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user