class_docstr: DyHead Block with three types of attention.
  
  HSigmoid arguments in default act_cfg follow official code, not paper.
  https://github.com/microsoft/DynamicHead/blob/master/dyhead/dyrelu.py
  
  Args:
      in_channels (int): Number of input channels.
      out_channels (int): Number of output channels.
      zero_init_offset (bool, optional): Whether to use zero init for
          `spatial_conv_offset`. Default: True.
      act_cfg (dict, optional): Config dict for the last activation layer of
          scale-aware attention. Default: dict(type='HSigmoid', bias=3.0,
          divisor=6.0).
class_docstr_tok: ["DyHead","Block","with","three","types","of","attention",".","HSigmoid","arguments","in","default","act_cfg","follow","official","code",",","not","paper",".","https",":","\/\/github.com\/microsoft\/DynamicHead\/blob\/master\/dyhead\/dyrelu.py","Args",":","in_channels","(","int",")",":","Number","of","input","channels",".","out_channels","(","int",")",":","Number","of","output","channels",".","zero_init_offset","(","bool",",","optional",")",":","Whether","to","use","zero","init","for","`","spatial_conv_offset","`",".","Default",":","True",".","act_cfg","(","dict",",","optional",")",":","Config","dict","for","the","last","activation","layer","of","scale-aware","attention",".","Default",":","dict","(","type='HSigmoid","'",",","bias=3.0",",","divisor=6.0",")","."]
code: def _init_weights(self):
      for m in self.modules():
          if isinstance(m, nn.Conv2d):
              normal_init(m, 0, 0.01)
      if self.zero_init_offset:
          constant_init(self.spatial_conv_offset, 0)
  
file_path: mmdetection/mmdet/models/necks/dyhead.py
imports: import torch.nn
  import torch.nn.functional
  from mmcv.cnn import build_activation_layer, build_norm_layer
  from mmcv.ops.modulated_deform_conv import ModulatedDeformConv2d
  from mmengine.model import BaseModule, constant_init, normal_init
  from mmdet.registry import MODELS
  from ..layers import DyReLU
label_desc: Use image node_id 2 for calling the DyHeadBlock obj's underlying member method code with example usage: obj._init_weights() without return types