class_docstr: Optim wrapper that implements rate.
class_docstr_tok: ["Optim","wrapper","that","implements","rate","."]
docstr: Update parameters and rate.
docstr_tok: ["Update","parameters","and","rate","."]
code: def step(self):
      """Update parameters and rate."""
      self._step += 1
      rate = self.rate()
      for p in self.optimizer.param_groups:
          p["lr"] = rate
      self._rate = rate
      self.optimizer.step()
  
file_path: espnet/espnet/nets/pytorch_backend/transformer/optimizer.py
imports: import torch
label_desc: Use image node_id 3 for calling the NoamOpt obj's underlying member method code with example usage: obj.step() without return types