Source code for cvnets.layers.activation.gelu

#
# For licensing see accompanying LICENSE file.
# Copyright (C) 2023 Apple Inc. All Rights Reserved.
#

from torch import Tensor, nn

from cvnets.layers.activation import register_act_fn


[docs]@register_act_fn(name="gelu") class GELU(nn.GELU): """ Applies the `Gaussian Error Linear Units <https://arxiv.org/abs/1606.08415>`_ function """
[docs] def __init__(self, *args, **kwargs) -> None: super().__init__()