docstr: Forward computations from the sentence batches
  to the output probabilities.
docstr_tok: ["Forward","computations","from","the","sentence","batches","to","the","output","probabilities","."]
code: def compute_forward(self, batch, stage):
      """Forward computations from the sentence batches
      to the output probabilities."""
      batch = batch.to(self.device)
      tokens_bos, _ = batch.tokens_bos
      logits = self.hparams.model(tokens_bos)
      pred = self.hparams.log_softmax(logits)
      return pred
  
file_path: speechbrain/recipes/KsponSpeech/LM/train.py
imports: import sys
  import logging
  from pathlib import Path
  import torch
  from hyperpyyaml import load_hyperpyyaml
  import speechbrain
  from speechbrain.utils.distributed import run_on_main
label_desc: Use image node_id 1 for calling the LM obj's underlying member method code with example usage: obj.compute_forward(batch, stage) and returns: pred