class_docstr: Residual connection with constant affine weights.
  
  Can simulate standard residual, no residual, and "constant gates".
code: def __init__(self, i_layer, d_input, d_model, alpha=1.0, beta=1.0):
      # print("ConstantResidual extra kwargs", kwargs)
      super().__init__()
      assert (d_input == d_model) or alpha == 0.0
      self.i_layer = i_layer
      self.d_input = d_input
      self.d_model = d_model
      self.alpha = alpha
      self.beta = beta
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 1 to create a new Residual object from inherited base classes: nn with example: obj = Residual(i_layer, d_input, d_model, alpha, beta)