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)
| 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 | |
| 175 | def get_optimizer_variables(optimizer): |