class_docstr: Residual Block with multi-grid , note: best model-> (1, 2, 1)
class_docstr_tok: ["Residual","Block","with","multi-grid",",","note",":","best","model-",">","(","1",",","2",",","1",")"]
code: def __init__(
      self,
      layers,
      inplanes,
      midplanes,
      outplanes,
      stride,
      dilation,
      mulgrid=None,
  ):
      if mulgrid is None:
          mulgrid = [1, 2, 1]
      super(_ResidualBlockMulGrid, self).__init__()
      self.add_module(
          "block1",
          _Bottleneck(
              inplanes,
              midplanes,
              outplanes,
              stride,
              dilation * mulgrid[0],
              True,
          ),
      )
      self.add_module(
          "block2",
          _Bottleneck(
              outplanes,
              midplanes,
              outplanes,
              stride,
              dilation * mulgrid[1],
              False,
          ),
      )
      self.add_module(
          "block3",
          _Bottleneck(
              outplanes,
              midplanes,
              outplanes,
              stride,
              dilation * mulgrid[2],
              False,
          ),
      )
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from .None import seg_resnet
  from .None import seg_resnext
label_desc: Use image node_id 1 to create a new _ResidualBlockMulGrid object from inherited base classes: nn with example: obj = _ResidualBlockMulGrid(layers, inplanes, midplanes, outplanes, stride, dilation, mulgrid)