python/ray/ml/checkpoint.py
def from_bytes(cls, data: bytes) -> "Checkpoint":
        """Create a checkpoint from the given byte string.

        Args:
            data (bytes): Data object containing pickled checkpoint data.

        Returns:
            Checkpoint: checkpoint object.
        """
        bytes_data = pickle.loads(data)
        if isinstance(bytes_data, dict):
            data_dict = bytes_data
        else:
            data_dict = {_BYTES_DATA_KEY: bytes_data}
        return cls.from_dict(data_dict)
Create a checkpoint from the given byte string.

        Args:
            data (bytes): Data object containing pickled checkpoint data.

        Returns:
            Checkpoint: checkpoint object.
        
Create a checkpoint from the given byte string.
Create a checkpoint from the given byte string .
def from_bytes(cls, data: bytes) -> "Checkpoint":
        bytes_data = pickle.loads(data)
        if isinstance(bytes_data, dict):
            data_dict = bytes_data
        else:
            data_dict = {_BYTES_DATA_KEY: bytes_data}
        return cls.from_dict(data_dict)
def from_bytes ( cls , data : bytes ) -> "Checkpoint" : bytes_data = pickle . loads ( data ) if isinstance ( bytes_data , dict ) : data_dict = bytes_data else : data_dict = { _BYTES_DATA_KEY : bytes_data } return cls . from_dict ( data_dict )
Create a checkpoint from the given byte string.
Create a checkpoint from the given byte string .
"""Create a checkpoint from the given byte string.

        Args:
            data (bytes): Data object containing pickled checkpoint data.

        Returns:
            Checkpoint: checkpoint object.
        """
None
Checkpoint
cls
data
bytes
Data object containing pickled checkpoint data.
Data object containing pickled checkpoint data .