From acf73293f14314b249db002fda308300cc18cb6f Mon Sep 17 00:00:00 2001 From: Samaneh Saadat Date: Sat, 27 Jan 2024 02:23:06 +0000 Subject: [PATCH] Cast avg to float in progbar. (#19111) --- keras/utils/progbar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keras/utils/progbar.py b/keras/utils/progbar.py index b2391ed98df..1f60b1818e3 100644 --- a/keras/utils/progbar.py +++ b/keras/utils/progbar.py @@ -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: