class_docstr: OnlineProcessor module definition.
  
  Args:
      feature_extractor: Feature extractor module.
      normalization_module: Normalization module.
      decoding_window: Size of the decoding window (in ms).
      encoder_sub_factor: Encoder subsampling factor.
      frontend_conf: Frontend configuration.
      device: Device to pin module tensors on.
      audio_sampling_rate: Input sampling rate.
docstr: Compute features from input samples.
  
  Args:
      samples: Speech data. (S)
      is_final: Whether speech corresponds to the final chunk of data.
  
  Returns:
      feats: Features sequence. (1, chunk_sz_bs, D_feats)
      feats_length: Features length sequence. (1,)
docstr_tok: ["Compute","features","from","input","samples",".","Args",":","samples",":","Speech","data",".","(","S",")","is_final",":","Whether","speech","corresponds","to","the","final","chunk","of","data",".","Returns",":","feats",":","Features","sequence",".","(","1",",","chunk_sz_bs",",","D_feats",")","feats_length",":","Features","length","sequence",".","(","1",",",")"]
code: def compute_features(
      self, samples: torch.Tensor, is_final: bool
  ) -> None:
      """Compute features from input samples.
  
      Args:
          samples: Speech data. (S)
          is_final: Whether speech corresponds to the final chunk of data.
  
      Returns:
          feats: Features sequence. (1, chunk_sz_bs, D_feats)
          feats_length: Features length sequence. (1,)
  
      """
      samples = self.get_current_samples(samples, is_final)
  
      feats, feats_length = self.feature_extractor(
          samples, self.samples_length
      )
  
      if self.normalization_module is not None:
          feats, feats_length = self.normalization_module(
              feats, feats_length
          )
  
      feats, feats_length = self.get_current_feats(
          feats, feats_length, is_final
      )
  
      return feats, feats_length
  
imports: from typing import Dict, Tuple
  import torch
label_desc: Use image node_id 5 for calling the OnlineAudioProcessor obj's underlying member method code with example usage: obj.compute_features(samples, is_final) and returns: feats,  feats_length