class_docstr: ResNe(X)t 3D basic stem module. Assume a single pathway.
  Performs spatiotemporal Convolution, BN, and Relu following by a
      spatiotemporal pooling.
docstr: The `__init__` method of any subclass should also contain these arguments.
  
  Args:
      dim_in (int): the channel dimension of the input. Normally 3 is used
          for rgb input
      dim_out (int): the output dimension of the convolution in the stem
          layer.
      kernel (list): the kernel size of the convolution in the stem layer.
          temporal kernel size, height kernel size, width kernel size in
          order.
      stride (list): the stride size of the convolution in the stem layer.
          temporal kernel stride, height kernel size, width kernel size in
          order.
      padding (int): the padding size of the convolution in the stem
          layer, temporal padding size, height padding size, width
          padding size in order.
      maxpool (bool): If true, perform max pooling.
      inplace_relu (bool): calculate the relu on the original input
          without allocating new memory.
      bn_eps (float): epsilon for batch norm.
      bn_mmt (float): momentum for batch norm. Noted that BN momentum in
          PyTorch = 1 - BN momentum in Caffe2.
docstr_tok: ["The","`","__init__","`","method","of","any","subclass","should","also","contain","these","arguments",".","Args",":","dim_in","(","int",")",":","the","channel","dimension","of","the","input",".","Normally","3","is","used","for","rgb","input","dim_out","(","int",")",":","the","output","dimension","of","the","convolution","in","the","stem","layer",".","kernel","(","list",")",":","the","kernel","size","of","the","convolution","in","the","stem","layer",".","temporal","kernel","size",",","height","kernel","size",",","width","kernel","size","in","order",".","stride","(","list",")",":","the","stride","size","of","the","convolution","in","the","stem","layer",".","temporal","kernel","stride",",","height","kernel","size",",","width","kernel","size","in","order",".","padding","(","int",")",":","the","padding","size","of","the","convolution","in","the","stem","layer",",","temporal","padding","size",",","height","padding","size",",","width","padding","size","in","order",".","maxpool","(","bool",")",":","If","true",",","perform","max","pooling",".","inplace_relu","(","bool",")",":","calculate","the","relu","on","the","original","input","without","allocating","new","memory",".","bn_eps","(","float",")",":","epsilon","for","batch","norm",".","bn_mmt","(","float",")",":","momentum","for","batch","norm",".","Noted","that","BN","momentum","in","PyTorch","=","1","-","BN","momentum","in","Caffe2","."]
code: def __init__(
      self,
      dim_in,
      dim_out,
      kernel,
      stride,
      padding,
      maxpool=True,
      inplace_relu=True,
      bn_eps=1e-5,
      bn_mmt=0.1,
  ):
      """
      The `__init__` method of any subclass should also contain these arguments.
  
      Args:
          dim_in (int): the channel dimension of the input. Normally 3 is used
              for rgb input
          dim_out (int): the output dimension of the convolution in the stem
              layer.
          kernel (list): the kernel size of the convolution in the stem layer.
              temporal kernel size, height kernel size, width kernel size in
              order.
          stride (list): the stride size of the convolution in the stem layer.
              temporal kernel stride, height kernel size, width kernel size in
              order.
          padding (int): the padding size of the convolution in the stem
              layer, temporal padding size, height padding size, width
              padding size in order.
          maxpool (bool): If true, perform max pooling.
          inplace_relu (bool): calculate the relu on the original input
              without allocating new memory.
          bn_eps (float): epsilon for batch norm.
          bn_mmt (float): momentum for batch norm. Noted that BN momentum in
              PyTorch = 1 - BN momentum in Caffe2.
      """
      super(ResNeXt3DStemSinglePathway, self).__init__()
      self.kernel = kernel
      self.stride = stride
      self.padding = padding
      self.inplace_relu = inplace_relu
      self.bn_eps = bn_eps
      self.bn_mmt = bn_mmt
      self.maxpool = maxpool
  
      # Construct the stem layer.
      self._construct_stem(dim_in, dim_out)
  
imports: from typing import Sequence
  import torch.nn
  from .r2plus1_util import r2plus1_unit
label_desc: Use image node_id 1 to create a new ResNeXt3DStemSinglePathway object from inherited base classes: nn with example: obj = ResNeXt3DStemSinglePathway(dim_in, dim_out, kernel, stride, padding, maxpool, inplace_relu, bn_eps, bn_mmt)