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

Method on_train_batch_begin

tensorflow/python/keras/callbacks.py:301–309  ·  view source on GitHub ↗

Calls the `on_train_batch_begin` methods of its callbacks. Arguments: batch: integer, index of batch within the current epoch. logs: dict. Has keys `batch` and `size` representing the current batch number and the size of the batch.

(self, batch, logs=None)

Source from the content-addressed store, hash-verified

299 callback.on_epoch_end(epoch, logs)
300
301 def on_train_batch_begin(self, batch, logs=None):
302 """Calls the `on_train_batch_begin` methods of its callbacks.
303
304 Arguments:
305 batch: integer, index of batch within the current epoch.
306 logs: dict. Has keys `batch` and `size` representing the current batch
307 number and the size of the batch.
308 """
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.

Callers

nothing calls this directly

Calls 1

_call_batch_hookMethod · 0.95

Tested by

no test coverage detected