MCPcopy Index your code
hub / github.com/pytorch/pytorch / task_reporter

Method task_reporter

caffe2/python/net_builder.py:455–466  ·  view source on GitHub ↗

Define operations to be executed at every time interval from task start-up to finish. These operations are guaranteed to execute at least once after all other operations of the task are finished. Example: with ops.task_reporter(interval_m

(self, interval_ms=1000, name=None)

Source from the content-addressed store, hash-verified

453 return setup
454
455 def task_reporter(self, interval_ms=1000, name=None):
456 """
457 Define operations to be executed at every time interval from
458 task start-up to finish. These operations are guaranteed to
459 execute at least once after all other operations of the task are
460 finished.
461
462 Example:
463 with ops.task_reporter(interval_ms=10000):
464 ops.LogInfo('10s elapsed')
465 """
466 return _ReporterBuilder(interval_ms, net=self.net(), name=name)
467
468 def local_reporter(self, interval_ms=1000, name=None):
469 """

Callers

nothing calls this directly

Calls 2

netMethod · 0.95
_ReporterBuilderClass · 0.85

Tested by

no test coverage detected