Skip to content

Commit b54c279

Browse files
committed
fix for RuntimeError
1 parent 8360683 commit b54c279

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
@@ -993,6 +993,9 @@ def restore_parts(path, model):
993993
clip_thresh=hparams.clip_thresh,
994994
train_seq2seq=train_seq2seq, train_postnet=train_postnet)
995995
except KeyboardInterrupt:
996+
print("Interrupted!")
997+
pass
998+
finally:
996999
save_checkpoint(
9971000
model, optimizer, global_step, checkpoint_dir, global_epoch,
9981001
train_seq2seq, train_postnet)

0 commit comments

Comments
 (0)