diff --git a/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp b/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp index e08e7e0e8..094589d33 100644 Binary files a/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp and b/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp differ diff --git a/icefall/.decode.py.swp b/icefall/.decode.py.swp index 0e084eb32..252dfe402 100644 Binary files a/icefall/.decode.py.swp and b/icefall/.decode.py.swp differ diff --git a/icefall/decode.py b/icefall/decode.py index 53ab39ecc..53c837fa4 100644 --- a/icefall/decode.py +++ b/icefall/decode.py @@ -954,6 +954,7 @@ def rescore_with_attention_decoder( assert nll.shape[0] == len(token_ids) attention_scores = -nll.sum(dim=1) + attention_scores.size()) if ngram_lm_scale is None: ngram_lm_scale_list = [0.]