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

Method on_test_batch_begin

tensorflow/python/keras/callbacks.py:320–328  ·  view source on GitHub ↗

Calls the `on_test_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

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.
322
323 Arguments:
324 batch: integer, index of batch within the current epoch.
325 logs: dict. Has keys `batch` and `size` representing the current batch
326 number and the size of the batch.
327 """
328 self._call_batch_hook(ModeKeys.TEST, 'begin', batch, logs=logs)
329
330 def on_test_batch_end(self, batch, logs=None):
331 """Calls the `on_test_batch_end` methods of its callbacks.

Callers 1

Calls 1

_call_batch_hookMethod · 0.95

Tested by 1