class_docstr: Decay the LR on a manual schedule.
class_docstr_tok: ["Decay","the","LR","on","a","manual","schedule","."]
code: def get_next_lr(self, epoch):
      manual_keys = [k for k in self.epoch2lr if k <= epoch]
      if manual_keys:
          manual_lr = self.epoch2lr[max(manual_keys)]
      else:
          logger.warning(
              "@@@ epoch={} does not exist in manual lr input. epoch2lr={}...".format(
                  epoch,
                  list(self.epoch2lr.items())[
                      : min(10, len(self.epoch2lr.keys()) - 1)
                  ],
              )
          )
          manual_lr = self.optimizer.get_lr()
      return manual_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 6 for calling the ManualSchedule obj's underlying member method code with example usage: obj.get_next_lr(epoch) and returns: manual_lr