class_docstr: Residual block: x + F(x)
class_docstr_tok: ["Residual","block",":","x","+","F","(","x",")"]
code: def __init__(
      self,
      w_in,
      w_out,
      stride,
      trans_fun,
      has_bn,
      has_st,
      use_srelu,
      w_b=None,
      num_gs=1,
  ):
      super(ResBlock, self).__init__()
      self.has_bn = has_bn
      self.has_st = has_st
      self.use_srelu = use_srelu
      self._construct(w_in, w_out, stride, trans_fun, w_b, num_gs)
  
imports: import numpy
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new ResBlock object from inherited base classes: nn with example: obj = ResBlock(w_in, w_out, stride, trans_fun, has_bn, has_st, use_srelu, w_b, num_gs)