class_docstr: Base decoder for text recognition, build the loss and postprocessor.
  
  Args:
      dictionary (dict or :obj:`Dictionary`): The config for `Dictionary` or
          the instance of `Dictionary`.
      loss (dict, optional): Config to build loss. Defaults to None.
      postprocessor (dict, optional): Config to build postprocessor.
          Defaults to None.
      max_seq_len (int): Maximum sequence length. The
          sequence is usually generated from decoder. Defaults to 40.
      init_cfg (dict or list[dict], optional): Initialization configs.
          Defaults to None.
docstr: Forward for testing.
  
  Args:
      feat (torch.Tensor, optional): The feature map from backbone of
          shape :math:`(N, E, H, W)`. Defaults to None.
      out_enc (torch.Tensor, optional): Encoder output. Defaults to None.
      data_samples (Sequence[TextRecogDataSample]): Batch of
          TextRecogDataSample, containing gt_text information. Defaults
          to None.
docstr_tok: ["Forward","for","testing",".","Args",":","feat","(","torch.Tensor",",","optional",")",":","The","feature","map","from","backbone","of","shape",":","math",":","`","(","N",",","E",",","H",",","W",")","`",".","Defaults","to","None",".","out_enc","(","torch.Tensor",",","optional",")",":","Encoder","output",".","Defaults","to","None",".","data_samples","(","Sequence","[","TextRecogDataSample","]",")",":","Batch","of","TextRecogDataSample",",","containing","gt_text","information",".","Defaults","to","None","."]
code: def forward_test(
      self,
      feat: Optional[torch.Tensor] = None,
      out_enc: Optional[torch.Tensor] = None,
      data_samples: Optional[Sequence[TextRecogDataSample]] = None,
  ) -> torch.Tensor:
      """Forward for testing.
  
      Args:
          feat (torch.Tensor, optional): The feature map from backbone of
              shape :math:`(N, E, H, W)`. Defaults to None.
          out_enc (torch.Tensor, optional): Encoder output. Defaults to None.
          data_samples (Sequence[TextRecogDataSample]): Batch of
              TextRecogDataSample, containing gt_text information. Defaults
              to None.
      """
      raise NotImplementedError
  
file_path: mmocr/mmocr/models/textrecog/decoders/base.py
imports: from typing import Dict, List, Optional, Sequence, Union
  import torch
  from mmengine.model import BaseModule
  from mmocr.models.common.dictionary import Dictionary
  from mmocr.registry import MODELS, TASK_UTILS
  from mmocr.structures import TextRecogDataSample
label_desc: Use image node_id 3 for calling the BaseDecoder obj's underlying member method code with example usage: obj.forward_test(feat, out_enc, data_samples) without return types