Skip to content

Commit

Permalink
fix for RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Mar 3, 2018
1 parent 4b66973 commit 5aea7cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,9 @@ def restore_parts(path, model):
clip_thresh=hparams.clip_thresh,
train_seq2seq=train_seq2seq, train_postnet=train_postnet)
except KeyboardInterrupt:
print("Interrupted!")
pass
finally:
save_checkpoint(
model, optimizer, global_step, checkpoint_dir, global_epoch,
train_seq2seq, train_postnet)
Expand Down

0 comments on commit 5aea7cd

Please sign in to comment.