class_docstr: A helper class to create instances of backward hooks. The hooks are registered in the
  scale method of LayerwiseGradientScaler.
class_docstr_tok: ["A","helper","class","to","create","instances","of","backward","hooks",".","The","hooks","are","registered","in","the","scale","method","of","LayerwiseGradientScaler","."]
code: def __init__(
      self,
      name: str,
      inputs_multiplier: float,
      outputs_multiplier: float,
  ):
      self.layer_name = name
      self.inputs_multiplier = inputs_multiplier
      self.outputs_multiplier = outputs_multiplier
  
file_path: fairscale/fairscale/optim/layerwise_gradient_scaler.py
imports: import logging
  from typing import List, Tuple
  import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new GradientHelper object  with example: obj = GradientHelper(name, inputs_multiplier, outputs_multiplier)