DEPRECATED: Use set_last_checkpoints_with_time. Sets the list of old checkpoint filenames. Args: last_checkpoints: A list of checkpoint filenames. Raises: AssertionError: If last_checkpoints is not a list.
(self, last_checkpoints)
| 1286 | return list(self._CheckpointFilename(p) for p in self._last_checkpoints) |
| 1287 | |
| 1288 | def set_last_checkpoints(self, last_checkpoints): |
| 1289 | """DEPRECATED: Use set_last_checkpoints_with_time. |
| 1290 | |
| 1291 | Sets the list of old checkpoint filenames. |
| 1292 | |
| 1293 | Args: |
| 1294 | last_checkpoints: A list of checkpoint filenames. |
| 1295 | |
| 1296 | Raises: |
| 1297 | AssertionError: If last_checkpoints is not a list. |
| 1298 | """ |
| 1299 | assert isinstance(last_checkpoints, list) |
| 1300 | # We use a timestamp of +inf so that this checkpoint will never be |
| 1301 | # deleted. This is both safe and backwards compatible to a previous |
| 1302 | # version of the code which used s[1] as the "timestamp". |
| 1303 | self._last_checkpoints = [(s, np.inf) for s in last_checkpoints] |
| 1304 | |
| 1305 | def set_last_checkpoints_with_time(self, last_checkpoints_with_time): |
| 1306 | """Sets the list of old checkpoint filenames and timestamps. |
no outgoing calls