class_docstr: Residual connection with constant affine weights.
  
  Can simulate standard residual, no residual, and "constant gates".
code: def d_output(self):
      return self.d_model
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 2 for calling the Residual obj's underlying member method code with example usage: obj.d_output() and returns: self