1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 11:40:18 +01:00

checkpointing fix

This commit is contained in:
Shadi Endrawis
2018-10-07 20:06:08 +03:00
parent 5c4f9d58dd
commit 364168490f

View File

@@ -220,7 +220,7 @@ class GraphManager(object):
self.set_session(self.sess)
else:
self.variables_to_restore = tf.global_variables()
self.variables_to_restore = [v for v in self.variables_to_restore if '/online' in v.name]
# self.variables_to_restore = [v for v in self.variables_to_restore if '/online' in v.name] TODO: is this necessary?
self.checkpoint_saver = tf.train.Saver(self.variables_to_restore)
# regular session