Commit 2edcf101 authored by Yuxin Wu's avatar Yuxin Wu

skip creating a unused saver

parent 58fc1dea
...@@ -171,6 +171,10 @@ class SaverRestoreRelaxed(SaverRestore): ...@@ -171,6 +171,10 @@ class SaverRestoreRelaxed(SaverRestore):
Another advantage is that it doesn't add any new ops to the graph. Another advantage is that it doesn't add any new ops to the graph.
""" """
def _setup_graph(self):
# no need to setup saver like the parent class
pass
def _run_init(self, sess): def _run_init(self, sess):
logger.info( logger.info(
"Restoring checkpoint from {} ...".format(self.path)) "Restoring checkpoint from {} ...".format(self.path))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment