MCPcopy Create free account
hub / github.com/pytorch/pytorch / _watchdog_loop

Method _watchdog_loop

torch/distributed/elastic/timer/api.py:179–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 return True
178
179 def _watchdog_loop(self):
180 while not self._stop_signaled:
181 try:
182 self._run_watchdog()
183 except Exception:
184 log.exception("Error running watchdog")
185
186 def _run_watchdog(self):
187 batch_size = max(1, self._request_queue.size())

Callers

nothing calls this directly

Calls 2

_run_watchdogMethod · 0.95
exceptionMethod · 0.80

Tested by

no test coverage detected