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

Method global_step

tensorpack/train/base.py:72–81  ·  view source on GitHub ↗

The tensorflow global_step, i.e. how many times ``hooked_sess.run`` has been called. Note: 1. global_step is incremented **after** each ``hooked_sess.run`` returns from TF runtime. 2. If you make zero or more than one calls to ``hooked_sess.run`` in one

(self)

Source from the content-addressed store, hash-verified

70
71 @property
72 def global_step(self):
73 """
74 The tensorflow global_step, i.e. how many times ``hooked_sess.run`` has been called.
75
76 Note:
77 1. global_step is incremented **after** each ``hooked_sess.run`` returns from TF runtime.
78 2. If you make zero or more than one calls to ``hooked_sess.run`` in one
79 :meth:`run_step`, local_step and global_step may increment at different speed.
80 """
81 return self._global_step
82
83 @property
84 def local_step(self):

Callers 1

get_global_step_valueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected