class_docstr: ResNet stem for ImageNet: 7x7, BN, AF, MaxPool.
class_docstr_tok: ["ResNet","stem","for","ImageNet",":","7x7",",","BN",",","AF",",","MaxPool","."]
code: def __init__(self, w_in, w_out, norm, activation_class):
      super().__init__(w_in, w_out, 4)
      self.conv = conv2d(w_in, w_out, 7, stride=2)
      self.bn = get_norm(norm, w_out)
      self.af = activation_class()
      self.pool = pool2d(3, stride=2)
  
imports: import numpy
  from torch import nn
  from detectron2.layers import CNNBlockBase, ShapeSpec, get_norm
  from .backbone import Backbone
label_desc: Use image node_id 1 to create a new ResStem object from inherited base classes: CNNBlockBase with example: obj = ResStem(w_in, w_out, norm, activation_class)