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)
| 619 | path_type=self._path_type) |
| 620 | |
| 621 | def cp_accessible(self, epoch=None): |
| 622 | """Returns True if Checkpoint data is accessible |
| 623 | |
| 624 | Args: |
| 625 | epoch: An integer. The epoch of the checkpoint. If None, |
| 626 | it implies we need to check if checkpoint directory is accessible |
| 627 | |
| 628 | Returns: |
| 629 | is_cp_accessible: A boolean. Returns True if Checkpoint data is accessible |
| 630 | """ |
| 631 | if self._metadata_handler is not None: |
| 632 | return self._metadata_handler.cp_accessible(epoch) |
| 633 | else: |
| 634 | return True |
| 635 | |
| 636 | |
| 637 | class UploadTaskGroupBuilder: |
nothing calls this directly
no test coverage detected