class_docstr: Registered as a `LearningRateScheduler` with name "constant".  The
  "optimizer" argument does not get an entry in a configuration file for the
  object.
  
  # Example
  
  Config for using the `ConstantLearningRateScheduler` Learning Rate
  Scheduler.
  
  ```json
  {
      ...
     "trainer":{
          ...
          "learning_rate_scheduler": "constant",
          ...
     }
  }
  ```
  Note that you do NOT pass a `optimizer` key to the Learning rate scheduler.
class_docstr_tok: ["Registered","as","a","`","LearningRateScheduler","`","with","name","``","constant","''",".","The","''","optimizer","''","argument","does","not","get","an","entry","in","a","configuration","file","for","the","object",".","#","Example","Config","for","using","the","`","ConstantLearningRateScheduler","`","Learning","Rate","Scheduler",".","``","`","json","{","...","``","trainer","''",":","{","...","``","learning_rate_scheduler","''",":","``","constant","''",",","...","}","}","``","`","Note","that","you","do","NOT","pass","a","`","optimizer","`","key","to","the","Learning","rate","scheduler","."]
code: def __init__(
      self, optimizer: Optimizer, last_epoch: int = -1
  ) -> None:
      lr_scheduler = get_constant_schedule(
          optimizer=optimizer, last_epoch=last_epoch
      )
      super().__init__(lr_scheduler)
  
imports: from typing import Any, Dict
  import torch
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.registrable import Registrable
  from allennlp.training.optimizers import Optimizer
  from allennlp.training.scheduler import Scheduler
  from transformers.optimization import get_constant_schedule, get_constant_schedule_with_warmup, get_cosine_schedule_with_warmup, get_cosine_with_hard_restarts_schedule_with_warmup
label_desc: Use image node_id 1 to create a new ConstantLearningRateScheduler object from inherited base classes: _PyTorchLearningRateSchedulerWrapper with example: obj = ConstantLearningRateScheduler(optimizer, last_epoch)