Skip to content

Commit

Permalink
Cast avg to float in progbar. (keras-team#19111)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanehSaadat authored Jan 27, 2024
1 parent 47bf22d commit acf7329
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keras/utils/progbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def update(self, current, values=None, finalize=None):
self._values[k][0] / max(1, self._values[k][1])
)
)
avg = float(avg)
if abs(avg) > 1e-3:
info += f" {avg:.4f}"
else:
Expand Down

0 comments on commit acf7329

Please sign in to comment.