(sig, frame)
| 195 | # once the signal was sent, the stop_training flag tells |
| 196 | # the pl module get ready for save checkpoint |
| 197 | def signal_handler(sig, frame): |
| 198 | print(f"Activate signal handler for signal {sig}") |
| 199 | module.stop_training = True |
| 200 | |
| 201 | signal.signal(signal.SIGUSR1, signal_handler) |
| 202 |
nothing calls this directly
no outgoing calls
no test coverage detected