mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-27 18:54:18 +00:00
Minor fixes.
This commit is contained in:
parent
b8037cd529
commit
1ea780f203
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user