Checkpoint.get_internal_representation() Tuple[str, Union[dict, str, ray.ObjectRef]][source]#

Return tuple of (type, data) for the internal representation.

The internal representation can be used e.g. to compare checkpoint objects for equality or to access the underlying data storage.

The returned type is a string and one of ["local_path", "data_dict", "uri"].

The data is the respective data value.

Note that paths converted from file://... will be returned as local_path (without the file:// prefix) and not as uri.


Tuple of type and data.

DeveloperAPI: This API may change across minor Ray releases.