class_docstr: An instance ``scaler`` helps perform the steps of gradient scaling
  conveniently.
class_docstr_tok: ["An","instance","``","scaler","``","helps","perform","the","steps","of","gradient","scaling","conveniently","."]
code: def _decrease_loss_scale(self) -> None:
      self.loss_scale /= self.scale_factor
      if self.threshold is not None:
          self.loss_scale = max(self.loss_scale, self.threshold)
  
file_path: fairscale/fairscale/experimental/optim/dynamic_loss_scaler.py
imports: from collections import defaultdict
  from enum import Enum
  from typing import Dict, List, Optional
  import torch
label_desc: Use image node_id 4 for calling the DynamicLossScaler obj's underlying member method code with example usage: obj._decrease_loss_scale() without return types