MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / on_train_batch_end

Method on_train_batch_end

tensorflow/python/keras/callbacks.py:311–318  ·  view source on GitHub ↗

Calls the `on_train_batch_end` methods of its callbacks. Arguments: batch: integer, index of batch within the current epoch. logs: dict. Metric results for this batch.

(self, batch, logs=None)

Source from the content-addressed store, hash-verified

309 self._call_batch_hook(ModeKeys.TRAIN, 'begin', batch, logs=logs)
310
311 def on_train_batch_end(self, batch, logs=None):
312 """Calls the `on_train_batch_end` methods of its callbacks.
313
314 Arguments:
315 batch: integer, index of batch within the current epoch.
316 logs: dict. Metric results for this batch.
317 """
318 self._call_batch_hook(ModeKeys.TRAIN, 'end', batch, logs=logs)
319
320 def on_test_batch_begin(self, batch, logs=None):
321 """Calls the `on_test_batch_begin` methods of its callbacks.

Callers

nothing calls this directly

Calls 1

_call_batch_hookMethod · 0.95

Tested by

no test coverage detected