import torch


def get_inverse_softplus_offset(offset):
    """Get inverse offsetted softplus."""
    def inverse_softplus_offset(x):
        return torch.log(x.exp() - 1) + offset
    return inverse_softplus_offset