MCPcopy Create free account
hub / github.com/pytorch/pytorch / cp_accessible

Method cp_accessible

caffe2/python/checkpoint.py:621–634  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
637class UploadTaskGroupBuilder:

Callers

nothing calls this directly

Calls 1

cp_accessibleMethod · 0.45

Tested by

no test coverage detected