Skip to content

Commit f5af7d9

Browse files
committed
fix for RuntimeError
1 parent 2c27f69 commit f5af7d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

train.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,9 @@ def restore_parts(path, model):
991991
clip_thresh=hparams.clip_thresh,
992992
train_seq2seq=train_seq2seq, train_postnet=train_postnet)
993993
except KeyboardInterrupt:
994+
print("Interrupted!")
995+
pass
996+
finally:
994997
save_checkpoint(
995998
model, optimizer, global_step, checkpoint_dir, global_epoch,
996999
train_seq2seq, train_postnet)

0 commit comments

Comments
 (0)