class_docstr: Stage of ResNet.
class_docstr_tok: ["Stage","of","ResNet","."]
code: def __init__(
      self, w_in, w_out, stride, net_params, d, w_b=None, num_gs=1
  ):
      super(ResStage, self).__init__()
      self.transfun = net_params["transfun"]
      self.has_bn = net_params["has_bn"]
      self.has_st = net_params["has_st"]
      self.use_srelu = net_params["use_srelu"]
      self._construct(w_in, w_out, stride, d, 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 ResStage object from inherited base classes: nn with example: obj = ResStage(w_in, w_out, stride, net_params, d, w_b, num_gs)