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

add gelu op #100

Merged
merged 2 commits into from
Oct 19, 2022
Merged

add gelu op #100

merged 2 commits into from
Oct 19, 2022

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented Oct 19, 2022

No description provided.

@classmethod
def Version_9(cls, ctx, node, **kwargs):
dtypes = node.output_dtypes
# kBeta = math.sqrt(2 / math.pi)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是另外一个版本的gelu实现,后续gelu支持了"tanh"模式之后这个代码需要打开,所以这里就不删除了。

@BBuf BBuf requested a review from oneflow-ci-bot October 19, 2022 07:08
@BBuf BBuf requested review from oneflow-ci-bot and removed request for oneflow-ci-bot October 19, 2022 07:14
@BBuf BBuf merged commit 3a3e84f into main Oct 19, 2022
@BBuf BBuf deleted the add_gelu_op branch October 19, 2022 08:04
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.

2 participants