import torch


def gelu_quick(x):
    """ Approximation of gelu.

    Examples:
        >>> inputs = torch.rand(3, 2)
        >>> assert torch.allclose(gelu_quick(inputs), F.gelu(inputs), atol=1e-2)

    References: https://arxiv.org/pdf/1606.08415.pdf
    """
    return x * torch.sigmoid(1.702 * x)