class_docstr: A class that wraps `backend.magnitude_to_decibel` to compute decibel of the input magnitude.
  
  Args:
      ref_value (`float`): an input value that would become 0 dB in the result.
          For spectrogram magnitudes, ref_value=1.0 usually make the decibel-scaled output to be around zero
          if the input audio was in [-1, 1].
      amin (`float`): the noise floor of the input. An input that is smaller than `amin`, it's converted to `amin.
      dynamic_range (`float`): range of the resulting value. E.g., if the maximum magnitude is 30 dB,
          the noise floor of the output would become (30 - dynamic_range) dB
  
  Example:
      ::
  
          input_shape = (2048, 1)  # mono signal
          model = Sequential()
          model.add(kapre.STFT(n_fft=1024, hop_length=512, input_shape=input_shape))
          model.add(Magnitude())
          model.add(MagnitudeToDecibel())
          # now the shape is (batch, n_frame=3, n_freq=513, ch=1) and dtype is float
class_docstr_tok: ["A","class","that","wraps","`","backend.magnitude_to_decibel","`","to","compute","decibel","of","the","input","magnitude",".","Args",":","ref_value","(","`","float","`",")",":","an","input","value","that","would","become","0","dB","in","the","result",".","For","spectrogram","magnitudes",",","ref_value=1.0","usually","make","the","decibel-scaled","output","to","be","around","zero","if","the","input","audio","was","in","[","-1",",","1","]",".","amin","(","`","float","`",")",":","the","noise","floor","of","the","input",".","An","input","that","is","smaller","than","`","amin","`",",","it","'s","converted","to","`","amin",".","dynamic_range","(","`","float","`",")",":","range","of","the","resulting","value",".","E.g.",",","if","the","maximum","magnitude","is","30","dB",",","the","noise","floor","of","the","output","would","become","(","30","-","dynamic_range",")","dB","Example",":",":",":","input_shape","=","(","2048",",","1",")","#","mono","signal","model","=","Sequential","(",")","model.add","(","kapre.STFT","(","n_fft=1024",",","hop_length=512",",","input_shape=input_shape",")",")","model.add","(","Magnitude","(",")",")","model.add","(","MagnitudeToDecibel","(",")",")","#","now","the","shape","is","(","batch",",","n_frame=3",",","n_freq=513",",","ch=1",")","and","dtype","is","float"]
code: def get_config(self):
      config = super(MagnitudeToDecibel, self).get_config()
      config.update(
          {
              "amin": self.amin,
              "dynamic_range": self.dynamic_range,
              "ref_value": self.ref_value,
          }
      )
      return config
  
imports: import tensorflow
  from tensorflow.keras import backend
  from tensorflow.keras.layers import Layer
  from .None import backend
  from .backend import _CH_FIRST_STR, _CH_LAST_STR, _CH_DEFAULT_STR
  from .tflite_compatible_stft import atan2_tflite
label_desc: Use image node_id 3 for calling the MagnitudeToDecibel obj's underlying member method code with example usage: obj.get_config() and returns: config