Skip to content

Commit 08e825f

Browse files
committed
fix for RuntimeError
1 parent 3fdbde5 commit 08e825f

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
@@ -957,6 +957,9 @@ def restore_parts(path, model):
957957
clip_thresh=hparams.clip_thresh,
958958
train_seq2seq=train_seq2seq, train_postnet=train_postnet)
959959
except KeyboardInterrupt:
960+
print("Interrupted!")
961+
pass
962+
finally:
960963
save_checkpoint(
961964
model, optimizer, global_step, checkpoint_dir, global_epoch,
962965
train_seq2seq, train_postnet)

0 commit comments

Comments
 (0)