tensorflow中的问题

来源:互联网 发布:如何升级mac osx10.10 编辑:程序博客网 时间:2024/05/17 23:12


  1. 模型只保存5个
    http://stackoverflow.com/questions/38837309/tensorflow-saver-has-5-models-limit

The tf.train.Saver() constructor takes an optional argument called max_to_keep, which defaults to keeping the 5 most recent checkpoints of your model. To save more models, simply specify a value for that argument:
saver = tf.train.Saver(max_to_keep=10)
To keep all checkpoints, pass the argument max_to_keep=None to the saver constructor.

0 0
原创粉丝点击