class_docstr: A class for streaming frame-based ASR.
  Inherits from FrameBatchASR and adds new capability of returning the logit output.
  Please refer to FrameBatchASR for more detailed information.
class_docstr_tok: ["A","class","for","streaming","frame-based","ASR",".","Inherits","from","FrameBatchASR","and","adds","new","capability","of","returning","the","logit","output",".","Please","refer","to","FrameBatchASR","for","more","detailed","information","."]
code: def _get_batch_preds(self, keep_logits):
      device = self.asr_model.device
      for batch in iter(self.data_loader):
          feat_signal, feat_signal_len = batch
          feat_signal, feat_signal_len = feat_signal.to(
              device
          ), feat_signal_len.to(device)
          log_probs, encoded_len, predictions = self.asr_model(
              processed_signal=feat_signal,
              processed_signal_length=feat_signal_len,
          )
          preds = torch.unbind(predictions)
          for pred in preds:
              self.all_preds.append(pred.cpu().numpy())
          # Always keep logits in FrameBatchASRLogits
          _ = keep_logits
          log_probs_tup = torch.unbind(log_probs)
          for log_prob in log_probs_tup:
              self.all_logprobs.append(log_prob)
          del log_probs, log_probs_tup
          del encoded_len
          del predictions
  
imports: import copy
  import math
  from typing import Dict, List, Tuple, Type, Union
  import numpy
  import torch
  from omegaconf import OmegaConf
  import nemo.collections.asr
  from nemo.collections.asr.metrics.wer import WER
  from nemo.collections.asr.models import EncDecCTCModel, EncDecCTCModelBPE
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCBPEDecoding, CTCBPEDecodingConfig, CTCDecoding, CTCDecodingConfig
  from nemo.collections.asr.parts.utils.audio_utils import get_samples
  from nemo.collections.asr.parts.utils.speaker_utils import audio_rttm_map, get_uniqname_from_filepath
  from nemo.collections.asr.parts.utils.streaming_utils import AudioFeatureIterator, FrameBatchASR
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling the FrameBatchASRLogits obj's underlying member method code with example usage: obj._get_batch_preds(keep_logits) without return types