docstr: Computes the loss (NLL).
docstr_tok: ["Computes","the","loss","(","NLL",")","."]
code: def compute_objectives(self, predictions, batch, stage):
      """Computes the loss (NLL)."""
      p_seq, tokens_eos, tokens_eos_lens = predictions
  
      loss = self.hparams.seq_cost(
          p_seq, tokens_eos, length=tokens_eos_lens
      )
      return loss
  
file_path: speechbrain/recipes/timers-and-such/LM/train.py
imports: import sys
  import torch
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.distributed import run_on_main
label_desc: Use image node_id 2 for calling the LM obj's underlying member method code with example usage: obj.compute_objectives(predictions, batch, stage) and returns: loss