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 load_state_dict(self, state_dict: Dict[str, float]) -> None:
      if "loss_scale" in state_dict:
          self.loss_scale = state_dict["loss_scale"]
  
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 10 for calling the DynamicLossScaler obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types