class_docstr: Compute power of every frame in speech. Return a float tensor with
  shape (1 * num_frames).
docstr: Set params.
  :param config: contains five optional parameters:
      --sample_rate       : Waveform data sample frequency (must match the waveform
                           file, if specified there). (float, default = 16000)
      --window_length          : Window length in seconds. (float, default = 0.025)
      --frame_length           : Hop length in seconds. (float, default = 0.010)
      --snip_edges                     : If True, the last frame (shorter than window_length)
                            will be cutoff. If False, 1 // 2 frame_length data will
                            be padded to data. (int, default = True)
      --remove_dc_offset : Subtract mean from waveform on each frame (bool, default = true)
  :return:An object of class HParams, which is a set of hyperparameters as name-value pairs.
docstr_tok: ["Set","params",".",":","param","config",":","contains","five","optional","parameters",":","--","sample_rate",":","Waveform","data","sample","frequency","(","must","match","the","waveform","file",",","if","specified","there",")",".","(","float",",","default","=","16000",")","--","window_length",":","Window","length","in","seconds",".","(","float",",","default","=","0.025",")","--","frame_length",":","Hop","length","in","seconds",".","(","float",",","default","=","0.010",")","--","snip_edges",":","If","True",",","the","last","frame","(","shorter","than","window_length",")","will","be","cutoff",".","If","False",",","1","\/\/","2","frame_length","data","will","be","padded","to","data",".","(","int",",","default","=","True",")","--","remove_dc_offset",":","Subtract","mean","from","waveform","on","each","frame","(","bool",",","default","=","true",")",":","return",":","An","object","of","class","HParams",",","which","is","a","set","of","hyperparameters","as","name-value","pairs","."]
code: def params(cls, config=None):
      """
      Set params.
      :param config: contains five optional parameters:
          --sample_rate       : Waveform data sample frequency (must match the waveform
                               file, if specified there). (float, default = 16000)
          --window_length		 : Window length in seconds. (float, default = 0.025)
          --frame_length		 : Hop length in seconds. (float, default = 0.010)
          --snip_edges			 : If True, the last frame (shorter than window_length)
                                will be cutoff. If False, 1 // 2 frame_length data will
                                be padded to data. (int, default = True)
          --remove_dc_offset : Subtract mean from waveform on each frame (bool, default = true)
      :return:An object of class HParams, which is a set of hyperparameters as name-value pairs.
      """
  
      window_length = 0.025
      frame_length = 0.010
      snip_edges = True
      remove_dc_offset = True
      sample_rate = 16000
  
      hparams = HParams(cls=cls)
      hparams.add_hparam("window_length", window_length)
      hparams.add_hparam("frame_length", frame_length)
      hparams.add_hparam("snip_edges", snip_edges)
      hparams.add_hparam("remove_dc_offset", remove_dc_offset)
      hparams.add_hparam("sample_rate", sample_rate)
  
      if config is not None:
          hparams.override_from_dict(config)
  
      return hparams
  
file_path: delta/delta/data/frontend/framepow.py
imports: import delta.compat
  from core.ops import py_x_ops
  from delta.utils.hparam import HParams
  from delta.data.frontend.base_frontend import BaseFrontend
label_desc: Use image node_id 2 for calling the Framepow obj's underlying member method code with example usage: obj.params(cls, config) and returns: hparams