diff --git a/ppdet/utils/stats.py b/ppdet/utils/stats.py index b7ae5045124..c070e6544ed 100644 --- a/ppdet/utils/stats.py +++ b/ppdet/utils/stats.py @@ -74,7 +74,7 @@ def update(self, stats): for k in stats.keys() } for k, v in self.meters.items(): - v.update(stats[k]) + v.update(float(stats[k])) def get(self, extras=None): stats = collections.OrderedDict()