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

Method SetReportNet

caffe2/python/core.py:2769–2774  ·  view source on GitHub ↗

DEPRECATED. Use RunEveryMillis instead.

(self, report_net, report_interval)

Source from the content-addressed store, hash-verified

2767 self._step.run_every_ms = interval
2768
2769 def SetReportNet(self, report_net, report_interval):
2770 """ DEPRECATED. Use RunEveryMillis instead. """
2771 self._assert_can_mutate()
2772 _add_net_to_dict(self._net_dict, report_net)
2773 self._step.report_net = get_net_name(report_net)
2774 self._step.report_interval = report_interval
2775
2776 def AddSubstep(self, substep):
2777 self._assert_can_mutate()

Callers 1

execution_stepFunction · 0.95

Calls 3

_assert_can_mutateMethod · 0.95
_add_net_to_dictFunction · 0.85
get_net_nameFunction · 0.85

Tested by

no test coverage detected