MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / _setup_graph

Method _setup_graph

tensorpack/tfutils/sessinit.py:109–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 self.ignore = [i if i.endswith(':0') else i + ':0' for i in ignore]
108
109 def _setup_graph(self):
110 dic = self._get_restore_dict()
111 self.saver = tf.train.Saver(var_list=dic, name=str(id(dic)))
112
113 def _run_init(self, sess):
114 logger.info("Restoring checkpoint from {} ...".format(self.path))

Callers

nothing calls this directly

Calls 1

_get_restore_dictMethod · 0.95

Tested by

no test coverage detected