"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "235be08569000a5361354f766972e653212bf0d3"
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