class_docstr: Vanilla block: [3x3 conv, BN, Relu] x2.
class_docstr_tok: ["Vanilla","block",":","[","3x3","conv",",","BN",",","Relu","]","x2","."]
code: def __init__(
      self, w_in, w_out, stride, norm, activation_class, _params
  ):
      super().__init__(w_in, w_out, stride)
      self.a = conv2d(w_in, w_out, 3, stride=stride)
      self.a_bn = get_norm(norm, w_out)
      self.a_af = activation_class()
      self.b = conv2d(w_out, w_out, 3)
      self.b_bn = get_norm(norm, w_out)
      self.b_af = activation_class()
  
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 VanillaBlock object from inherited base classes: CNNBlockBase with example: obj = VanillaBlock(w_in, w_out, stride, norm, activation_class, _params)