class_docstr: Stem of ResNet.
class_docstr_tok: ["Stem","of","ResNet","."]
code: def _construct(self, w_in, w_out):
      # 3x3, BN, ReLU for cifar and  7x7, BN, ReLU, maxpool for imagenet
      self.conv = nn.Conv2d(
          w_in,
          w_out,
          kernel_size=self.kernelsize,
          stride=self.stride,
          padding=self.padding,
          bias=not self.has_bn and not self.use_srelu,
      )
      if self.has_bn:
          self.bn = nn.BatchNorm2d(w_out)
      self.relu = nn.ReLU(True) if not self.use_srelu else SReLU(w_out)
      if self.use_maxpool:
          self.pool = nn.MaxPool2d(
              kernel_size=self.poolksize,
              stride=self.poolstride,
              padding=self.poolpadding,
          )
  
imports: import numpy
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 2 for calling the ResStem obj's underlying member method code with example usage: obj._construct(w_in, w_out) without return types