bad refactor on make_logs member, should've been in the CallbackList class
@@ -611,6 +611,14 @@ class CallbackList:
)
# pylint: enable=protected-access
+ def make_logs(self, model, logs, outputs, mode, prefix=''):
+ """Computes logs for sending to `on_batch_end` methods."""
+ if not self.callbacks:
+ return logs
+
+ return make_logs(model, logs, outputs, mode, prefix=prefix)
+
+
@keras_export("keras.callbacks.Callback")
class Callback:
@@ -904,13 +912,6 @@ class Callback:
method but that may change in the future.
"""
- def make_logs(self, model, logs, outputs, mode, prefix=''):
- """Computes logs for sending to `on_batch_end` methods."""
- if not self.callbacks:
- return logs
-
- return make_logs(model, logs, outputs, mode, prefix=prefix)
-
def _implements_train_batch_hooks(self):
"""Determines if this Callback should be called for each train batch."""
return (
