class_docstr: Decoder of Mask2Former.
class_docstr_tok: ["Decoder","of","Mask2Former","."]
docstr: Initialize decoder layers.
docstr_tok: ["Initialize","decoder","layers","."]
code: def _init_layers(self) -> None:
      """Initialize decoder layers."""
      self.layers = ModuleList(
          [
              Mask2FormerTransformerDecoderLayer(**self.layer_cfg)
              for _ in range(self.num_layers)
          ]
      )
      self.embed_dims = self.layers[0].embed_dims
      self.post_norm = build_norm_layer(
          self.post_norm_cfg, self.embed_dims
      )[1]
  
file_path: mmdetection/mmdet/models/layers/transformer/mask2former_layers.py
imports: from mmcv.cnn import build_norm_layer
  from mmengine.model import ModuleList
  from torch import Tensor
  from .deformable_detr_layers import DeformableDetrTransformerEncoder
  from .detr_layers import DetrTransformerDecoder, DetrTransformerDecoderLayer
label_desc: Use image node_id 1 for calling the Mask2FormerTransformerDecoder obj's underlying member method code with example usage: obj._init_layers() without return types