from local

This commit is contained in:
dohe0342 2023-06-09 17:39:01 +09:00
parent 3a492b79df
commit 8d946917ed
3 changed files with 0 additions and 4 deletions

Binary file not shown.

View File

@ -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":