import torch


def safe_softplus(x: torch.Tensor, eps: float = 1e-6) -> torch.Tensor:
    """Safe softplus to return a softplus larger than epsilon.

    Parameters
    ----------
    x: torch.Tensor.
        Input tensor to transform.
    eps: float.
        Safety jitter.

    Returns
    -------
    output: torch.Tensor.
        Transformed tensor.
    """
    return torch.nn.functional.softplus(x) + eps