class_docstr: Represent modifications to training graph for weight compression.
class_docstr_tok: ["Represent","modifications","to","training","graph","for","weight","compression","."]
code: def __init__(self, layer, algorithm, compressible_weights: List[str]):
      self.algorithm = algorithm
      self.compressible_weights = compressible_weights
      self.dummy_name_to_tensor = {}
  
      self.original_add_weight = layer.add_weight
      setattr(layer, "add_weight", self._skip_compressible_weights)
  
      super(_TrainingWrapper, self).__init__(layer)
  
imports: from typing import List, Mapping
  import tensorflow
label_desc: Use image node_id 1 to create a new _TrainingWrapper object from inherited base classes: tf.keras.layers with example: obj = _TrainingWrapper(layer, algorithm, compressible_weights)