def log_norm(x, mean=-4, std=4, dim=2):
    """
    normalized log mel -> mel -> norm -> log(norm)
    """
    x = torch.log(torch.exp(x * std + mean).norm(dim=dim))
    return x
normalized log mel -> mel -> norm -> log(norm)
models/codec/facodec/modules/commons.py