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

Method cp_accessible

caffe2/python/checkpoint.py:416–429  ·  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

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
432class MultiNodeCheckpointManager:

Callers 2

cp_accessibleMethod · 0.45
save_checkpointsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected