docstr: Given input chars it computes the phoneme's probabilities
code: def compute_forward(self, batch, stage):
      "Given input chars it computes the phoneme's probabilities"
      batch = batch.to(self.device)
      chars, char_lens = batch.char_encoded
      phns, phn_lens = batch.phn_encoded_bos
  
      emb_char = self.modules.encoder_emb(chars)
      x, _ = self.modules.enc(emb_char)
      e_in = self.modules.emb(phns)
  
      h, w = self.modules.dec(e_in, x, char_lens)
      logits = self.modules.lin(h)
      outputs = self.hparams.softmax(logits)
  
      seq = None
      if stage != sb.Stage.TRAIN:
          seq, _, _, _ = self.hparams.searcher(x, char_lens)
  
      return outputs, seq
  
file_path: speechbrain/tests/integration/G2P/example_g2p.py
imports: import pathlib
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
label_desc: Use image node_id 1 for calling the seq2seqBrain obj's underlying member method code with example usage: obj.compute_forward(batch, stage) and returns: outputs,  seq