MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _before_epoch

Method _before_epoch

tensorpack/callbacks/base.py:86–92  ·  view source on GitHub ↗

Called right before each epoch. Usually you should use the :meth:`trigger` callback to run something between epochs. Use this method only when something really needs to be run **immediately** before each epoch.

(self)

Source from the content-addressed store, hash-verified

84 self._before_epoch()
85
86 def _before_epoch(self):
87 """
88 Called right before each epoch.
89 Usually you should use the :meth:`trigger` callback to run something between epochs.
90 Use this method only when something really needs to be run **immediately** before each epoch.
91 """
92 pass
93
94 def after_epoch(self):
95 self._after_epoch()

Callers 1

before_epochMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected