Unverified Commit 2de90bee authored by Matt's avatar Matt Committed by GitHub
Browse files

Super-small fix stops us confusing Keras console logging by modifying its logs (#15373)

parent fa6dce25
...@@ -324,6 +324,7 @@ class PushToHubCallback(Callback): ...@@ -324,6 +324,7 @@ class PushToHubCallback(Callback):
) )
def on_epoch_end(self, epoch, logs=None): def on_epoch_end(self, epoch, logs=None):
logs = logs.copy() # Don't accidentally write things that Keras will read later
if "epoch" not in logs: if "epoch" not in logs:
logs["epoch"] = epoch logs["epoch"] = epoch
self.training_history.append(logs) self.training_history.append(logs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment