class_docstr: CosineScheduler
  Cosine decay
class_docstr_tok: ["CosineScheduler","Cosine","decay"]
docstr: Args:
      init_lr (float): Initial learning rate.
      max_iter (int): Max iteration.
docstr_tok: ["Args",":","init_lr","(","float",")",":","Initial","learning","rate",".","max_iter","(","int",")",":","Max","iteration","."]
code: def __init__(self, init_lr, max_iter):
      """
      Args:
          init_lr (float): Initial learning rate.
          max_iter (int): Max iteration.
      """
      self.init_lr = init_lr
      self.max_iter = max_iter
  
imports: import math
label_desc: Use image node_id 1 to create a new CosineScheduler object from inherited base classes: BaseLearningRateScheduler with example: obj = CosineScheduler(init_lr, max_iter)