mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-10 10:32:17 +00:00
resolve PR issue
This commit is contained in:
parent
8d0107a959
commit
563292599b
@ -490,7 +490,7 @@ def decode_one_chunk(
|
|||||||
if params.decoding_method == "greedy_search":
|
if params.decoding_method == "greedy_search":
|
||||||
greedy_search(model=model, encoder_out=encoder_out, streams=decode_streams)
|
greedy_search(model=model, encoder_out=encoder_out, streams=decode_streams)
|
||||||
elif params.decoding_method == "fast_beam_search":
|
elif params.decoding_method == "fast_beam_search":
|
||||||
processed_lens = torch.tensor(processed_lens, device=device)
|
processed_lens = torch.tensor(processed_lens, device=model.device)
|
||||||
processed_lens = processed_lens + encoder_out_lens
|
processed_lens = processed_lens + encoder_out_lens
|
||||||
fast_beam_search_one_best(
|
fast_beam_search_one_best(
|
||||||
model=model,
|
model=model,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user