MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / run

Method run

tensorflow/python/tpu/session_support.py:269–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 self.stop()
268
269 def run(self):
270 # Don't fetch logs or adjust timing: just ping the watchdog.
271 #
272 # If we hit an exception, reset our session as it is likely broken.
273 while self._running:
274 try:
275 self._worker_manager.ping(request=None)
276 time.sleep(self.ping_interval)
277 except errors.OpError as e:
278 # Catch any TF errors that occur so we don't stop sending heartbeats
279 logging.debug('Caught error while sending heartbeat: %s', e)
280 self._reset_manager()
281
282
283def start_worker_watchdog(session,

Callers 13

after_create_sessionMethod · 0.45
after_runMethod · 0.45
endMethod · 0.45
configureMethod · 0.45
pingMethod · 0.45
initialize_tpu_systemFunction · 0.45
_obtain_topologyFunction · 0.45
testTextLineDatasetMethod · 0.45
testTFRecordDatasetMethod · 0.45

Calls 3

_reset_managerMethod · 0.95
pingMethod · 0.80
sleepMethod · 0.45