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

Method _trigger_step

tensorpack/callbacks/summary.py:178–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 self._queue.append(results)
177
178 def _trigger_step(self):
179 if self.global_step % self._window == 0:
180 averages = np.asarray(self._queue).mean(axis=0)
181 for name, avg in zip(self._display_names, averages):
182 self.trainer.monitors.put_scalar(name + '/SMA', avg)

Callers

nothing calls this directly

Calls 2

meanMethod · 0.80
put_scalarMethod · 0.80

Tested by

no test coverage detected