mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
Remove inf from stored stats
This commit is contained in:
parent
130a18cc10
commit
29bb04a51c
@ -1159,7 +1159,8 @@ class MetricsTracker(collections.defaultdict):
|
||||
for k, v in self.items():
|
||||
ans[k] = v
|
||||
for k, v in other.items():
|
||||
ans[k] = ans[k] + v
|
||||
if v - v == 0:
|
||||
ans[k] = ans[k] + v
|
||||
return ans
|
||||
|
||||
def __mul__(self, alpha: float) -> "MetricsTracker":
|
||||
|
Loading…
x
Reference in New Issue
Block a user