§
    “©ºjH  ã                   óJ   — d dl mZmZ d dlmZ d dlmZ  G d„ de¦  «        ZdS )é    )ÚAnyÚOptional)Úoverride)ÚCheckpointIOc            	       ó   ‡ — e Zd ZdZdded         ddfˆ fd„Zeded         fd„¦   «         Zej        dd„¦   «         Ze	d	e
d
e
ddfd„¦   «         Ze	d	e
d
e
ddfd„¦   «         Ze	d	e
d
e
deee
f         fd„¦   «         Zˆ xZS )Ú_WrappingCheckpointIOzÆ``_WrappingCheckpointIO`` is a wrapper checkpoint_io that uses a base checkpoint_io to handle checkpointing.

    Args:
        checkpoint_io: A checkpoint IO plugin that is used as the basis.

    NÚcheckpoint_ior   Úreturnc                 óÀ   •— t          ¦   «                              ¦   «          || _        d| _        |�,t	          |t
          ¦  «        r|j        | _        d S d| _        d S d S )NFT)ÚsuperÚ__init__Ú_checkpoint_ioÚ_base_checkpoint_io_configuredÚ
isinstancer   )Úselfr	   Ú	__class__s     €út/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/pytorch_lightning/plugins/io/wrapper.pyr   z_WrappingCheckpointIO.__init__   si   ø€ Ý‰Œ×ÒÑÔÐà+ˆÔØ49ˆÔ+àÐ$Ý˜-Õ)>Ñ?Ô?ð ;Ø6CÔ6b�Ô3Ð3Ð3à6:�Ô3Ð3Ð3ð	 %Ð$ó    c                 ó   — | j         S ©N)r   )r   s    r   r	   z#_WrappingCheckpointIO.checkpoint_io)   s   € àÔ"Ð"r   c                 óÒ   — t          |t          ¦  «        rJ ‚| j        €d| _        || _        d S t          | j        t          ¦  «        r| j        sd| _        || j        _        d S d S d S )NT)r   r   r   r   r	   )r   r	   s     r   r	   z#_WrappingCheckpointIO.checkpoint_io-   s…   € å˜mÕ-BÑCÔCÐCÐCÐCàÔÐ&Ø26ˆDÔ/Ø"/ˆDÔÐÐÝ˜Ô+Õ-BÑCÔCð 	>ÈDÔLoð 	>Ø26ˆDÔ/Ø0=ˆDÔÔ-Ð-Ð-ð	>ð 	>ð 	>ð 	>r   ÚargsÚkwargsc                 ó<   — | j         €J ‚ | j         j        |i |¤Ž dS )z7Uses the base ``checkpoint_io`` to save the checkpoint.N)r	   Úsave_checkpoint©r   r   r   s      r   r   z%_WrappingCheckpointIO.save_checkpoint8   s4   € ð Ô!Ð-Ð-Ð-Ø*ˆÔÔ*¨DÐ;°FÐ;Ð;Ð;Ð;Ð;r   c                 ó<   — | j         €J ‚ | j         j        |i |¤Ž dS )z9Uses the base ``checkpoint_io`` to remove the checkpoint.N)r	   Úremove_checkpointr   s      r   r   z'_WrappingCheckpointIO.remove_checkpoint>   s4   € ð Ô!Ð-Ð-Ð-Ø,ˆÔÔ,¨dÐ=°fÐ=Ð=Ð=Ð=Ð=r   c                 ó8   — | j         €J ‚ | j         j        |i |¤ŽS )z7Uses the base ``checkpoint_io`` to load the checkpoint.)r	   Úload_checkpointr   s      r   r    z%_WrappingCheckpointIO.load_checkpointD   s.   € ð Ô!Ð-Ð-Ð-Ø1ˆtÔ!Ô1°4ÐB¸6ÐBÐBÐBr   r   )r	   r   r
   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úpropertyr	   Úsetterr   r   r   r   ÚdictÚstrr    Ú__classcell__)r   s   @r   r   r      sa  ø€ € € € € ðð ð
;ð 
; h¨~Ô&>ð 
;È$ð 
;ð 
;ð 
;ð 
;ð 
;ð 
;ð ð#˜x¨Ô7ð #ð #ð #ñ „Xð#ð Ôð>ð >ð >ñ Ôð>ð ð< Sð <°Cð <¸Dð <ð <ð <ñ „Xð<ð
 ð> sð >°cð >¸dð >ð >ð >ñ „Xð>ð
 ðC Sð C°Cð C¸DÀÀcÀ¼Nð Cð Cð Cñ „XðCð Cð Cð Cð Cr   r   N)Útypingr   r   Útyping_extensionsr   Úlightning_fabric.pluginsr   r   © r   r   ú<module>r.      s�   ðð !Ð  Ð  Ð  Ð  Ð  Ð  Ð  à &Ð &Ð &Ð &Ð &Ð &à 1Ð 1Ð 1Ð 1Ð 1Ð 1ð3Cð 3Cð 3Cð 3Cð 3C˜Lñ 3Cô 3Cð 3Cð 3Cð 3Cr   