docstr: Given an input chars it computes the next-char probability.
code: def compute_forward(self, batch, stage):
      "Given an input chars it computes the next-char probability."
      batch = batch.to(self.device)
      chars, char_lens = batch.char_encoded_bos
      logits = self.modules.model(chars)
      pout = self.hparams.log_softmax(logits)
      return pout
  
file_path: speechbrain/tests/integration/LM_RNN/example_lm_rnn_experiment.py
imports: import math
  import pathlib
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
label_desc: Use image node_id 1 for calling the LMBrain obj's underlying member method code with example usage: obj.compute_forward(batch, stage) and returns: pout