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

Method put_event

tensorpack/callbacks/monitor.py:190–200  ·  view source on GitHub ↗

Put an :class:`tf.Event`. `step` and `wall_time` fields of :class:`tf.Event` will be filled automatically. Args: evt (tf.Event):

(self, evt)

Source from the content-addressed store, hash-verified

188 self._dispatch(lambda m: m.process_summary(s))
189
190 def put_event(self, evt):
191 """
192 Put an :class:`tf.Event`.
193 `step` and `wall_time` fields of :class:`tf.Event` will be filled automatically.
194
195 Args:
196 evt (tf.Event):
197 """
198 evt.step = self.global_step
199 evt.wall_time = time.time()
200 self._dispatch(lambda m: m.process_event(evt))
201
202 def get_latest(self, name):
203 """

Callers 1

_write_eventMethod · 0.80

Calls 2

_dispatchMethod · 0.95
process_eventMethod · 0.45

Tested by

no test coverage detected