def METHOD_NAME(
    self,
    feat: Optional[torch.Tensor] = None,
    out_enc: Optional[torch.Tensor] = None,
    data_samples: Optional[Sequence[TextRecogDataSample]] = None
) -> torch.Tensor:
    """
    Args:
        feat (Tensor): A Tensor of shape :math:`(N, C, 1, W)`.
        out_enc (torch.Tensor, optional): Encoder output. Defaults to None.
        data_samples (list[TextRecogDataSample]): Batch of
            TextRecogDataSample, containing ``gt_text`` information.
            Defaults to None.
    Returns:
        Tensor: Character probabilities. of shape
        :math:`(N, self.max_seq_len, C)` where :math:`C` is
        ``num_classes``.
    """
    return self.softmax(self.forward_train(feat, out_enc, data_samples))