Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why the activation functions formed like this in the code? #23

Closed
ShiningorDying opened this issue May 28, 2023 · 1 comment
Closed

Comments

@ShiningorDying
Copy link

the activation function is the code is :

def nonlinearity(x):
    return x*torch.sigmoid(x)

wondering what is the advantage of it comparing regular RELU and GELU

@jiamings
Copy link
Member

jiamings commented Oct 2, 2023

I don't think it is a particular design choice. I copied from some earlier pytorch implementation.

@jiamings jiamings closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants