class_docstr: Converts source sequences to text.
class_docstr_tok: ["Converts","source","sequences","to","text","."]
docstr: :param source_seq:
      The source sequence. *Shape:* :math:`(S,*)`, where :math:`S` is the
      sequence length and :math:`*` is any number of sequence-specific
      dimensions including none.
  
  :returns:
      - The converted text.
      - The output of the underlying sequence-to-sequence generator.
docstr_tok: [":","param","source_seq",":","The","source","sequence",".","*","Shape",":","*",":","math",":","`","(","S",",","*",")","`",",","where",":","math",":","`","S","`","is","the","sequence","length","and",":","math",":","`","*","`","is","any","number","of","sequence-specific","dimensions","including","none",".",":","returns",":","-","The","converted","text",".","-","The","output","of","the","underlying","sequence-to-sequence","generator","."]
code: def __call__(
      self, source_seq: Tensor
  ) -> Tuple[StringLike, Seq2SeqGeneratorOutput]:
      """
      :param source_seq:
          The source sequence. *Shape:* :math:`(S,*)`, where :math:`S` is the
          sequence length and :math:`*` is any number of sequence-specific
          dimensions including none.
  
      :returns:
          - The converted text.
          - The output of the underlying sequence-to-sequence generator.
      """
      texts, generator_output = self._do_convert(
          source_seq.unsqueeze(0), source_padding_mask=None
      )
  
      return texts[0], generator_output
  
imports: from abc import ABC
  from typing import List, Optional, Sequence, Tuple, final
  from torch import Tensor
  from fairseq2.data import StringLike
  from fairseq2.data.text import TextTokenDecoder, TextTokenEncoder, TextTokenizer
  from fairseq2.generation.generator import Seq2SeqGenerator, Seq2SeqGeneratorOutput, SequenceGenerator, SequenceGeneratorOutput
  from fairseq2.nn.padding import PaddingMask, pad_seqs
  from fairseq2.nn.utils.module import infer_device
label_desc: Use image node_id 1 for calling the SequenceToTextConverter obj's underlying member method code with example usage: obj.__call__(source_seq) and returns: texts,  generator_output