mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Remove inf from stored stats (#1647)
This commit is contained in:
parent
130a18cc10
commit
4d5c1f2e60
@ -1159,6 +1159,7 @@ class MetricsTracker(collections.defaultdict):
|
|||||||
for k, v in self.items():
|
for k, v in self.items():
|
||||||
ans[k] = v
|
ans[k] = v
|
||||||
for k, v in other.items():
|
for k, v in other.items():
|
||||||
|
if v - v == 0:
|
||||||
ans[k] = ans[k] + v
|
ans[k] = ans[k] + v
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user