Skip to content

Commit 420dd76

Browse files
committed
fix the tensor to float
1 parent 50d7972 commit 420dd76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppdet/utils/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def update(self, stats):
7474
for k in stats.keys()
7575
}
7676
for k, v in self.meters.items():
77-
v.update(stats[k])
77+
v.update(float(stats[k]))
7878

7979
def get(self, extras=None):
8080
stats = collections.OrderedDict()

0 commit comments

Comments
 (0)