class_docstr: A gradient scaler which uses constant loss scale
  
  Args:
      initial_scale (float): the initial loss scale
      verbose (bool): whether to log messages
class_docstr_tok: ["A","gradient","scaler","which","uses","constant","loss","scale","Args",":","initial_scale","(","float",")",":","the","initial","loss","scale","verbose","(","bool",")",":","whether","to","log","messages"]
code: def __init__(self, initial_scale: int, verbose: bool):
      super().__init__(initial_scale, verbose)
      self.log(
          f"Constant Gradient Scaler is initialized with scale {self.scale}",
          ranks=[0],
      )
  
imports: from .base_grad_scaler import BaseGradScaler
label_desc: Use image node_id 1 to create a new ConstantGradScaler object from inherited base classes: BaseGradScaler with example: obj = ConstantGradScaler(initial_scale, verbose)