Skip to content

Commit f9f08bc

Browse files
authored
Update example_model.py
1 parent e873ec8 commit f9f08bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/example_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ def build_model(self):
2828

2929
def init_saver(self):
3030
# here you initalize the tensorflow saver that will be used in saving the checkpoints.
31-
pass
31+
self.saver = tf.train.Saver(max_to_keep=self.config.max_to_keep)
32+

0 commit comments

Comments
 (0)