Returns True if Checkpoint data is accessible Args: epoch: An integer. The epoch of the checkpoint. If None, it implies we need to check if checkpoint directory is accessible Returns: is_cp_accessible: A boolean. Returns True if Checkpoint da
(self, epoch=None)
| 414 | path_type=self._path_type) |
| 415 | |
| 416 | def cp_accessible(self, epoch=None): |
| 417 | """Returns True if Checkpoint data is accessible |
| 418 | |
| 419 | Args: |
| 420 | epoch: An integer. The epoch of the checkpoint. If None, |
| 421 | it implies we need to check if checkpoint directory is accessible |
| 422 | |
| 423 | Returns: |
| 424 | is_cp_accessible: A boolean. Returns True if Checkpoint data is accessible |
| 425 | """ |
| 426 | if self._metadata_handler is not None: |
| 427 | return self._metadata_handler.cp_accessible(epoch) |
| 428 | else: |
| 429 | return True |
| 430 | |
| 431 | |
| 432 | class MultiNodeCheckpointManager: |
no outgoing calls
no test coverage detected