"docs/vscode:/vscode.git/clone" did not exist on "cd665396620d41413ef8aeee8d56ffc2e562d40b"
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):
)
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:
logs["epoch"] = epoch
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