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

Method _increment_step

tensorflow/python/keras/callbacks.py:1619–1624  ·  view source on GitHub ↗
(self, writer_name)

Source from the content-addressed store, hash-verified

1617 }
1618
1619 def _increment_step(self, writer_name):
1620 step = self._total_batches_seen[writer_name]
1621 if isinstance(step, variables.Variable):
1622 step.assign_add(1)
1623 else:
1624 self._total_batches_seen[writer_name] += 1
1625
1626 def on_train_begin(self, logs=None):
1627 self._init_batch_steps()

Callers 2

on_train_batch_endMethod · 0.95
on_test_batch_endMethod · 0.95

Calls 1

assign_addMethod · 0.45

Tested by

no test coverage detected