class_docstr: Optim wrapper that implements rate.
class_docstr_tok: ["Optim","wrapper","that","implements","rate","."]
docstr: Load state_dict.
docstr_tok: ["Load","state_dict","."]
code: def load_state_dict(self, state_dict):
      """Load state_dict."""
      for key, value in state_dict.items():
          if key == "optimizer":
              self.optimizer.load_state_dict(state_dict["optimizer"])
          else:
              setattr(self, key, value)
  
file_path: espnet/espnet/nets/pytorch_backend/transformer/optimizer.py
imports: import torch
label_desc: Use image node_id 7 for calling the NoamOpt obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types