def call()

in realbook/layers/signal.py [0:0]


    def call(self, inputs: tf.Tensor) -> tf.Tensor:
        log_spec = 10.0 * (
            log_base_b(tf.math.maximum(inputs, self.amin), 10.0)
            - log_base_b(tf.math.maximum(self.amin, self.ref), 10.0)
        )
        log_spec = tf.math.maximum(log_spec, tf.math.reduce_max(log_spec, keepdims=True) - self.top_db)

        return log_spec