class_docstr: Residual basic block: x + f(x), f = basic transform.
class_docstr_tok: ["Residual","basic","block",":","x","+","f","(","x",")",",","f","=","basic","transform","."]
code: def __init__(self, w_in, w_out, stride, params):
      super(ResBasicBlock, self).__init__()
      self.proj, self.bn = None, None
      if (w_in != w_out) or (stride != 1):
          self.proj = conv2d(w_in, w_out, 1, stride=stride)
          self.bn = norm2d(w_out)
      self.f = BasicTransform(w_in, w_out, stride, params)
      self.af = activation()
  
imports: from pycls.core.config import cfg
  from pycls.models.blocks import activation, conv2d, conv2d_cx, gap2d, gap2d_cx, init_weights, linear, linear_cx, norm2d, norm2d_cx, pool2d, pool2d_cx, SE
  from torch.nn import Module
label_desc: Use image node_id 1 to create a new ResBasicBlock object from inherited base classes: Module with example: obj = ResBasicBlock(w_in, w_out, stride, params)