mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 19:50:17 +01:00
checkpointing fix
This commit is contained in:
@@ -220,7 +220,7 @@ class GraphManager(object):
|
|||||||
self.set_session(self.sess)
|
self.set_session(self.sess)
|
||||||
else:
|
else:
|
||||||
self.variables_to_restore = tf.global_variables()
|
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)
|
self.checkpoint_saver = tf.train.Saver(self.variables_to_restore)
|
||||||
|
|
||||||
# regular session
|
# regular session
|
||||||
|
|||||||
Reference in New Issue
Block a user