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

Method update_global_step

tensorpack/train/base.py:53–58  ·  view source on GitHub ↗

Update the Python-side global_step from TF. This must be called under initialized default session.

(self)

Source from the content-addressed store, hash-verified

51 self._epoch_num = starting_epoch - 1
52
53 def update_global_step(self):
54 """
55 Update the Python-side global_step from TF.
56 This must be called under initialized default session.
57 """
58 self._global_step = get_global_step_value()
59
60 @property
61 def epoch_num(self):

Callers 1

main_loopMethod · 0.80

Calls 1

get_global_step_valueFunction · 0.85

Tested by

no test coverage detected