Skip to content

Commit bc81c1c

Browse files
committed
Updated the free_train to save the last checkpoitn
1 parent 4ea3bc3 commit bc81c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

free_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def train(tf_seed, np_seed, train_steps, out_steps, summary_steps, checkpoint_st
119119
print(' training nat accuracy {:.4}%'.format(nat_acc * 100))
120120

121121
# Write a checkpoint
122-
if ii % checkpoint_steps == 0:
122+
if (ii+1) % checkpoint_steps == 0:
123123
saver.save(sess, os.path.join(model_dir, 'checkpoint'), global_step=global_step)
124124

125125
# Actual training step

0 commit comments

Comments
 (0)