class_docstr: Pointwise multiplies by sigmoid(S) with a learnable vector S.
class_docstr_tok: ["Pointwise","multiplies","by","sigmoid","(","S",")","with","a","learnable","vector","S","."]
code: def __init__(self, residual_weight):
      super().__init__(n_in=1, n_out=1)
      self._residual_weight = residual_weight
  
imports: import numpy
  from trax import fastmath
  from trax import layers
  from trax.fastmath import numpy
  from trax.layers.assert_shape import assert_shape
label_desc: Use image node_id 1 to create a new _ClippedScaling object from inherited base classes: tl with example: obj = _ClippedScaling(residual_weight)