code: def __init__(
      self,
      init_scale=2.0**15,
      scale_factor=2.0,
      scale_window=2000,
      tolerance=0.0,
      threshold=None,
      min_loss_scale=1e-4,
  ):
      self.loss_scale = init_scale
      self.scale_factor = scale_factor
      self.scale_window = scale_window
      self.tolerance = tolerance
      self.threshold = threshold
      self._iter = 0
      self._last_overflow_iter = -1
      self._last_rescale_iter = -1
      self._overflows_since_rescale = 0
      self.min_loss_scale = min_loss_scale
  
label_desc: Use image node_id 1 to create a new DynamicLossScaler object from inherited base classes: object with example: obj = DynamicLossScaler(init_scale, scale_factor, scale_window, tolerance, threshold, min_loss_scale)