class_docstr: Hooks to be used with Checkpointing.
class_docstr_tok: ["Hooks","to","be","used","with","Checkpointing","."]
docstr: Called by Lightning to restore your model. If you saved something with :meth:`on_save_checkpoint` this is
  your chance to restore this.
  
  Args:
      checkpoint: Loaded checkpoint
  
  Example::
  
      def on_load_checkpoint(self, checkpoint):
          # 99% of the time you don't need to implement this method
          self.something_cool_i_want_to_save = checkpoint['something_cool_i_want_to_save']
  
  Note:
      Lightning auto-restores global step, epoch, and train state including amp scaling.
      There is no need for you to restore anything regarding training.
code: def on_load_checkpoint(self, checkpoint: Dict[str, Any]) -> None:
      r"""Called by Lightning to restore your model. If you saved something with :meth:`on_save_checkpoint` this is
      your chance to restore this.
  
      Args:
          checkpoint: Loaded checkpoint
  
      Example::
  
          def on_load_checkpoint(self, checkpoint):
              # 99% of the time you don't need to implement this method
              self.something_cool_i_want_to_save = checkpoint['something_cool_i_want_to_save']
  
      Note:
          Lightning auto-restores global step, epoch, and train state including amp scaling.
          There is no need for you to restore anything regarding training.
  
      """
  
imports: from typing import Any, Dict, Optional
  import torch
  from torch import Tensor
  from torch.optim.optimizer import Optimizer
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_0
  from lightning.pytorch.utilities import move_data_to_device
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from lightning.pytorch.utilities.types import EVAL_DATALOADERS, STEP_OUTPUT, TRAIN_DATALOADERS
label_desc: Use image node_id 1 for calling the CheckpointHooks obj's underlying member method code with example usage: obj.on_load_checkpoint(checkpoint) without return types