From 1ea780f2036e0ab69b23c2e3a97bea015028278a Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 16 Nov 2021 14:24:01 +0800 Subject: [PATCH] Minor fixes. --- icefall/decode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icefall/decode.py b/icefall/decode.py index d8571f8ea..c63ee52c2 100644 --- a/icefall/decode.py +++ b/icefall/decode.py @@ -365,7 +365,7 @@ class Nbest(object): Return a ragged tensor with 2 axes [utt][path_scores]. Its dtype is torch.float64. """ - saved_scores = self.fsa.scores + saved_scores = self.fsa.scores.clone() # The `scores` of every arc consists of `am_scores` and `lm_scores` self.fsa.scores = self.fsa.scores - self.fsa.lm_scores @@ -392,7 +392,7 @@ class Nbest(object): Return a ragged tensor with 2 axes [utt][path_scores]. Its dtype is torch.float64. """ - saved_scores = self.fsa.scores + saved_scores = self.fsa.scores.clone() # The `scores` of every arc consists of `am_scores` and `lm_scores` self.fsa.scores = self.fsa.lm_scores