Skip to content
Discussion options

You must be logged in to vote

I'd like to not ... perform any of the code after trainer.fit if keyboard interrupt is performed.

  1. Press C-c many times, or
  2. Override on_exception and reraise the exception there

when I try to access the "interrupted" attribute, I get "no attribute 'interrupted' ".

Here's the trainer's property:

# status in ("initializing", "running", "finished", "interrupted")
trainer.state.status

https://pyto…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by smolPixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pl Generic label for PyTorch Lightning package
2 participants