class_docstr: Base class for cascade decode head used in
  :class:`CascadeEncoderDecoder.
docstr: Forward function for testing.
  
  Args:
      inputs (list[Tensor]): List of multi-level img features.
      prev_output (Tensor): The output of previous decode head.
      img_metas (list[dict]): List of image info dict where each dict
          has: 'img_shape', 'scale_factor', 'flip', and may also contain
          'filename', 'ori_shape', 'pad_shape', and 'img_norm_cfg'.
          For details on the values of these keys see
          `mmseg/datasets/pipelines/formatting.py:Collect`.
      test_cfg (dict): The testing config.
  
  Returns:
      Tensor: Output segmentation map.
docstr_tok: ["Forward","function","for","testing",".","Args",":","inputs","(","list","[","Tensor","]",")",":","List","of","multi-level","img","features",".","prev_output","(","Tensor",")",":","The","output","of","previous","decode","head",".","img_metas","(","list","[","dict","]",")",":","List","of","image","info","dict","where","each","dict","has",":","'img_shape","'",",","'scale_factor","'",",","'flip","'",",","and","may","also","contain","'filename","'",",","'ori_shape","'",",","'pad_shape","'",",","and","'img_norm_cfg","'",".","For","details","on","the","values","of","these","keys","see","`","mmseg\/datasets\/pipelines\/formatting.py",":","Collect","`",".","test_cfg","(","dict",")",":","The","testing","config",".","Returns",":","Tensor",":","Output","segmentation","map","."]
code: def forward_test(self, inputs, prev_output, img_metas, test_cfg):
      """Forward function for testing.
  
      Args:
          inputs (list[Tensor]): List of multi-level img features.
          prev_output (Tensor): The output of previous decode head.
          img_metas (list[dict]): List of image info dict where each dict
              has: 'img_shape', 'scale_factor', 'flip', and may also contain
              'filename', 'ori_shape', 'pad_shape', and 'img_norm_cfg'.
              For details on the values of these keys see
              `mmseg/datasets/pipelines/formatting.py:Collect`.
          test_cfg (dict): The testing config.
  
      Returns:
          Tensor: Output segmentation map.
      """
      return self.forward(inputs, prev_output)
  
file_path: lavis/lavis/common/annotator/uniformer/mmseg/models/decode_heads/cascade_decode_head.py
imports: from abc import ABCMeta, abstractmethod
  from .decode_head import BaseDecodeHead
label_desc: Use image node_id 4 for calling the BaseCascadeDecodeHead obj's underlying member method code with example usage: obj.forward_test(inputs, prev_output, img_metas, test_cfg) and returns: self