mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
from local
This commit is contained in:
parent
3a492b79df
commit
8d946917ed
Binary file not shown.
Binary file not shown.
@ -380,10 +380,6 @@ def decode_one_batch(
|
|||||||
else:
|
else:
|
||||||
encoder_out, encoder_out_lens = model.encoder(x=feature, x_lens=feature_lens, prompt=model.prompt)
|
encoder_out, encoder_out_lens = model.encoder(x=feature, x_lens=feature_lens, prompt=model.prompt)
|
||||||
|
|
||||||
if 0:
|
|
||||||
encoder_out = encoder_out[:,50:,:]
|
|
||||||
encoder_out_lens -= 50
|
|
||||||
|
|
||||||
hyps = []
|
hyps = []
|
||||||
|
|
||||||
if params.decoding_method == "fast_beam_search":
|
if params.decoding_method == "fast_beam_search":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user