class_docstr: ResNet model.
class_docstr_tok: ["ResNet","model","."]
code: def _construct(self):
      g, gw = NUM_GROUPS, WIDTH_PER_GROUP
      (d1, d2, d3, d4) = _IN_STAGE_DS[self.resnet_depth]
      w_b = gw * g
      self.stem = ResStemIN(3, 64)
      self.s1 = ResStage(64, 256, stride=1, d=d1, w_b=w_b, num_gs=g)
      self.s2 = ResStage(
          256, 512, stride=2, d=d2, w_b=w_b * 2, num_gs=g
      )
      self.s3 = ResStage(
          512, 1024, stride=2, d=d3, w_b=w_b * 4, num_gs=g
      )
      self.s4 = ResStage(
          1024, 2048, stride=2, d=d4, w_b=w_b * 8, num_gs=g
      )
      self.head = GlobalHead(2048, nc=self.reduction_dim)
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 2 for calling the ResNet obj's underlying member method code with example usage: obj._construct() without return types