mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
ff17a6bfd1
commit
17300ba995
Binary file not shown.
@ -979,9 +979,9 @@ def rescore_with_attention_decoder(
|
||||
for n_scale in ngram_lm_scale_list:
|
||||
for a_scale in attention_scale_list:
|
||||
tot_scores = (
|
||||
am_scores.values
|
||||
+ n_scale * ngram_lm_scores.values
|
||||
+ a_scale * attention_scores
|
||||
#am_scores.values
|
||||
#+ n_scale * ngram_lm_scores.values
|
||||
a_scale * attention_scores
|
||||
)
|
||||
ragged_tot_scores = k2.RaggedTensor(nbest.shape, tot_scores)
|
||||
max_indexes = ragged_tot_scores.argmax()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user