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"]
docstr: Do nothing to keep the loss scale constant.
  
  Args:
      overflow (bool): whether overflow occurs
docstr_tok: ["Do","nothing","to","keep","the","loss","scale","constant",".","Args",":","overflow","(","bool",")",":","whether","overflow","occurs"]
code: def update(self, overflow: bool) -> None:
      """Do nothing to keep the loss scale constant.
  
      Args:
          overflow (bool): whether overflow occurs
      """
  
imports: from .base_grad_scaler import BaseGradScaler
label_desc: Use image node_id 2 for calling the ConstantGradScaler obj's underlying member method code with example usage: obj.update(overflow) without return types