Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
update tf.Saver.save option
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Jan 6, 2017
1 parent 7440ab6 commit a2a2205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def main(argv=None):
summary_writer.add_summary(summary_str, step)
if step % 250 == 0 or (step + 1) == FLAGS.max_steps:
checkpoint_path = os.path.join(FLAGS.logdir, 'model.ckpt')
saver.save(sess, checkpoint_path, global_step=step)
saver.save(sess, checkpoint_path, global_step=step, write_meta_graph=False, write_state=False)


if __name__ == '__main__':
Expand Down

0 comments on commit a2a2205

Please sign in to comment.