目录

Saver

每2小时保存一次模型,并且只保存最近的5个模型文件: tf.train.Saver(max_to_keep=5, keep_checkpoint_every_n_hours=2)

参考

  • https://blog.csdn.net/loveliuzz/article/details/81661875?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2