def log_compression(inputs: tf.Tensor,
                    log_offset: float = 1e-5) -> tf.Tensor:
    """Compress an inputs tensor with using a logarithm."""
    return tf.math.log(inputs + log_offset)
Compress an inputs tensor with using a logarithm.
leaf_audio/frontend.py