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

Erf operator Implementation #199

Merged
merged 4 commits into from May 18, 2024
Merged

Erf operator Implementation #199

merged 4 commits into from May 18, 2024

Conversation

AmineDiro
Copy link

Hello,

This is implementation on the approximate Erf operator. This operator is needed for models using the GELU activation function for example the majority of transformer models.

Onnx supports Gelu directly but it is starting from opset 20 so I think that this operator is useful for now.

Happy to make changes based on your suggestions !

@pixelspark
Copy link
Collaborator

Hi @AmineDiro! Sorry, only just got around to having a look at this. Your PR looks good! I would suggest however placing the Erf calculation itself in the activation templates (here) - otherwise we will end up with many different templates for similar functions.

@AmineDiro
Copy link
Author

Hi @pixelspark , No worries, thanks for taking the time to review this PR!
I didn't know where to put the function I'll do the necessary modification and push it! Thanks again and happy new year 🎉

@sluramod
Copy link

@pixelspark could you please merge this PR?

@pixelspark pixelspark merged commit c62f5d3 into webonnx:master May 18, 2024
@pixelspark
Copy link
Collaborator

Sorry, took a while, thanks for the contribution!

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

Successfully merging this pull request may close these issues.

None yet

3 participants