docstr: Load the checkpoint from ```filename```.
docstr_tok: ["Load","the","checkpoint","from","``","`","filename","``","`","."]
code: def load_checkpoint(self, filename):
      """
      Load the checkpoint from ```filename```.
      """
      ckpt = torch.load(filename)
      self.epoch = ckpt["epoch"]
      self.model.load_state_dict(ckpt["pfld_backbone"])
      self.auxiliarynet.load_state_dict(ckpt["auxiliarynet"])
      self.model_optim.load_state_dict(ckpt["optim"])
  
file_path: nni/examples/nas/legacy/oneshot/pfld/lib/trainer.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import time
  import torch
  import numpy
  from nni.algorithms.nas.pytorch.fbnet import FBNetTrainer
  from nni.nas.pytorch.utils import AverageMeter
  from .utils import accuracy
label_desc: Use image node_id 7 for calling the PFLDTrainer obj's underlying member method code with example usage: obj.load_checkpoint(filename) without return types