Ë
    g^(h  ã                   ó<   — d dl mZmZ d dlZe G d„ de«      «       Zy)é    )ÚProtocolÚruntime_checkableNc                   ó`   — e Zd ZdZdededee   fd„Zdee   fd„Zde	de
j                  fd„Zy	)
Ú_Checkpointablea  
    Interface for checkpointable objects.
    Implemented as a protocol, implicit subtyping is supported so subclasses do not need to inherit this explicitly.
    This is to allow arbitrary objects/tensor subclasses to hook into DCP seamlessly through implementing the interface.
    ÚfqnÚobjectÚreturnc                 ó   — t        d«      ‚)zI
        Return a list of WriteItems based on object's contents.
        z6_Checkpointable._create_write_items is not implemented©ÚNotImplementedError)Úselfr   r   s      ú_/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/torch/distributed/_checkpointable.pyÚ__create_write_items__z&_Checkpointable.__create_write_items__   s   € ô "ØDó
ð 	
ó    c                 ó   — t        d«      ‚)zU
        Return a list of `ChunkStorageMetadata` based on object's contents.
        z5_Checkpointable._create_chunk_list is not implementedr   )r   s    r   Ú__create_chunk_list__z%_Checkpointable.__create_chunk_list__   s   € ô "ØCó
ð 	
r   Úindexc                 ó   — t        d«      ‚)zI
        Return a 'torch.Tensor' shard based on 'MetadataIndex'.
        z4_Checkpointable._get_tensor_shard is not implementedr   )r   r   s     r   Ú__get_tensor_shard__z$_Checkpointable.__get_tensor_shard__   s   € ô "ØBó
ð 	
r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústrr   Úlistr   r   ÚintÚtorchÚTensorr   © r   r   r   r      sL   „ ñð
¨#ð 
°vð 
À$ÀvÁ,ó 
ð
 t¨F¡|ó 
ð
¨#ð 
°%·,±,ô 
r   r   )Útypingr   r   r   r   r   r   r   ú<module>r!      s&   ðç .ã ð ô
�hó 
ó ñ
r   