class_docstr: Decay the LR on a manual schedule.
class_docstr_tok: ["Decay","the","LR","on","a","manual","schedule","."]
code: def __init__(self, args, optimizer):
      super().__init__(args, optimizer)
  
      self.epoch2lr = self.parse_manuallr_args(args.epoch2lr)
      self.update2lr = self.parse_manuallr_args(args.update2lr)
      logger.info(
          "@@@ ManualSchedule epoch2lr={}".format(self.epoch2lr)
      )
      logger.info(
          "@@@ ManualSchedule update2lr={}".format(self.update2lr)
      )
  
      if 1 in self.epoch2lr:
          self.lr = self.epoch2lr[1]
      elif 1 in self.update2lr:
          self.lr = self.update2lr[1]
      else:
          self.lr = args.lr[0]
      self.optimizer.set_lr(self.lr)
  
file_path: fairseq/fairseq/optim/lr_scheduler/manual_lr_scheduler.py
imports: from .None import LegacyFairseqLRScheduler, register_lr_scheduler
  import logging
  import ast
label_desc: Use image node_id 1 to create a new ManualSchedule object from inherited base classes: LegacyFairseqLRScheduler with example: obj = ManualSchedule(args, optimizer)