Skip to content

Commit 5aea7cd

Browse files
committed
fix for RuntimeError
1 parent 4b66973 commit 5aea7cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

train.py

+3
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,9 @@ def restore_parts(path, model):
959959
clip_thresh=hparams.clip_thresh,
960960
train_seq2seq=train_seq2seq, train_postnet=train_postnet)
961961
except KeyboardInterrupt:
962+
print("Interrupted!")
963+
pass
964+
finally:
962965
save_checkpoint(
963966
model, optimizer, global_step, checkpoint_dir, global_epoch,
964967
train_seq2seq, train_postnet)

0 commit comments

Comments
 (0)