-
Notifications
You must be signed in to change notification settings - Fork 47
Add simplified se_block kernel #989
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
base: main
Are you sure you want to change the base?
Conversation
@mengluy0125 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84968671. |
1d10740
to
ff11c14
Compare
Summary: Pull Request resolved: pytorch#989 We add a helion kernel to compute 2 * x * sigmoid(x @ w) Differential Revision: D84968671
Summary: We add a helion kernel to compute 2 * x * sigmoid(x @ w) Differential Revision: D84968671
ff11c14
to
4955e98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase please
Summary: We add a helion kernel to compute 2 * x * sigmoid(x @ w) Differential Revision: D84968671
4955e98
to
3939aea
Compare
""" | ||
Helion SE Block Example | ||
============================ | ||
This example demonstrates a Helion kernel implementation of SE Block. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious what is "SE" short for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious what is "SE" short for?
Squeeze and Excitation Net. Basically it performs excitation on embedding, similar as Squeeze and Excitation Net as those used in https://arxiv.org/abs/1709.01507, the idea is to enhance signal/noise ratio to preserve useful information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! maybe we can add this explanation to this docstring as well to help clarify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @mengluy0125 ! might need to rebase the PR to resolve the merge conflicts
Summary: We add a helion kernel to compute 2 * x * sigmoid(x @ w)
Differential Revision: D84968671