docstr: Computations needed for validation/test batches
docstr_tok: ["Computations","needed","for","validation\/test","batches"]
code: def evaluate_batch(self, batch, stage):
      """Computations needed for validation/test batches"""
      with torch.no_grad():
          predictions = self.compute_forward(batch, stage=stage)
          loss = self.compute_objectives(
              predictions, batch, stage=stage
          )
      return loss.detach()
  
imports: import functools
  import os
  import sys
  import torch
  import logging
  from pathlib import Path
  import torchaudio
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.distributed import run_on_main, if_main_process
label_desc: Use image node_id 5 for calling the ASR obj's underlying member method code with example usage: obj.evaluate_batch(batch, stage) and returns: loss