MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / restore

Method restore

tensorflow/contrib/eager/python/saver.py:163–172  ·  view source on GitHub ↗

Restores previously saved variables. Args: file_prefix: Path prefix where parameters were previously saved. Typically obtained from a previous `save()` call, or from `tf.train.latest_checkpoint`.

(self, file_prefix)

Source from the content-addressed store, hash-verified

161 None, file_prefix, write_meta_graph=False, global_step=global_step)
162
163 def restore(self, file_prefix):
164 """Restores previously saved variables.
165
166 Args:
167 file_prefix: Path prefix where parameters were previously saved.
168 Typically obtained from a previous `save()` call, or from
169 `tf.train.latest_checkpoint`.
170 """
171 with ops.device("/device:CPU:0"):
172 self._saver.restore(None, file_prefix)
173
174
175def get_optimizer_variables(optimizer):

Calls 1

deviceMethod · 0.45