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

Function _signal_handler

tensorflow/python/debug/wrappers/grpc_wrapper.py:144–151  ·  view source on GitHub ↗
(unused_signal, unused_frame)

Source from the content-addressed store, hash-verified

142
143
144def _signal_handler(unused_signal, unused_frame):
145 while True:
146 response = six.moves.input(
147 "\nSIGINT received. Quit program? (Y/n): ").strip()
148 if response in ("", "Y", "y"):
149 sys.exit(0)
150 elif response in ("N", "n"):
151 break
152
153
154def register_signal_handler():

Callers

nothing calls this directly

Calls 3

stripMethod · 0.80
exitMethod · 0.80
inputMethod · 0.45

Tested by

no test coverage detected