class_docstr: ResNet backbone for DetectoRS.
  
  Args:
      sac (dict, optional): Dictionary to construct SAC (Switchable Atrous
          Convolution). Default: None.
      stage_with_sac (list): Which stage to use sac. Default: (False, False,
          False, False).
      rfp_inplanes (int, optional): The number of channels from RFP.
          Default: None. If specified, an additional conv layer will be
          added for ``rfp_feat``. Otherwise, the structure is the same as
          base class.
      output_img (bool): If ``True``, the input image will be inserted into
          the starting position of output. Default: False.
      pretrained (str, optional): The pretrained model to load.
class_docstr_tok: ["ResNet","backbone","for","DetectoRS",".","Args",":","sac","(","dict",",","optional",")",":","Dictionary","to","construct","SAC","(","Switchable","Atrous","Convolution",")",".","Default",":","None",".","stage_with_sac","(","list",")",":","Which","stage","to","use","sac",".","Default",":","(","False",",","False",",","False",",","False",")",".","rfp_inplanes","(","int",",","optional",")",":","The","number","of","channels","from","RFP",".","Default",":","None",".","If","specified",",","an","additional","conv","layer","will","be","added","for","``","rfp_feat","``",".","Otherwise",",","the","structure","is","the","same","as","base","class",".","output_img","(","bool",")",":","If","``","True","``",",","the","input","image","will","be","inserted","into","the","starting","position","of","output",".","Default",":","False",".","pretrained","(","str",",","optional",")",":","The","pretrained","model","to","load","."]
docstr: Forward function.
docstr_tok: ["Forward","function","."]
code: def forward(self, x):
      """Forward function."""
      outs = list(super(DetectoRS_ResNet, self).forward(x))
      if self.output_img:
          outs.insert(0, x)
      return tuple(outs)
  
file_path: insightface/detection/scrfd/mmdet/models/backbones/detectors_resnet.py
imports: import torch.nn
  import torch.utils.checkpoint
  from mmcv.cnn import build_conv_layer, build_norm_layer, constant_init
  from ..builder import BACKBONES
  from .resnet import Bottleneck
  from .resnet import ResNet
label_desc: Use image node_id 3 for calling the DetectoRS_ResNet obj's underlying member method code with example usage: obj.forward(x) and returns: tuple