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

Method _after_run

tensorpack/callbacks/prof.py:280–284  ·  view source on GitHub ↗
(self, _, rv)

Source from the content-addressed store, hash-verified

278 return None
279
280 def _after_run(self, _, rv):
281 results = rv.results
282 if results is not None:
283 for mem, dev in zip(results, self._devices):
284 self.trainer.monitors.put_scalar('PeakMemory(MB)' + dev, mem / 1e6)
285
286
287PeakMemoryTracker = GPUMemoryTracker

Callers

nothing calls this directly

Calls 1

put_scalarMethod · 0.80

Tested by

no test coverage detected