Skip to content

Commit

Permalink
fix ppdet/utils/states (PaddlePaddle#8421)
Browse files Browse the repository at this point in the history
* fix a code

* fix the tensor to float
  • Loading branch information
luyao-cv authored and Bobholamovic committed Jul 31, 2023
1 parent 47d7ee5 commit 0f739d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppdet/utils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def update(self, stats):
for k in stats.keys()
}
for k, v in self.meters.items():
v.update(stats[k].numpy())
v.update(float(stats[k]))

def get(self, extras=None):
stats = collections.OrderedDict()
Expand Down

0 comments on commit 0f739d8

Please sign in to comment.