-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Candidate solution] Add an elementwise + activation fusion pass, add mechanizm to add attributes outside of base op. #40081
Conversation
Thanks for your contribution! |
} | ||
return post_operations; | ||
} | ||
|
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.
Hi, I only have one question, why these getting attributes and computation function are in xx.h
file? It will not increase the lib size? Thanks !
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.
There is no .cc file and I didn't create it.
1a1f967
to
64a8277
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.
LGTM
This solution has been selected. |
PR types
Function optimization
PR changes
Function optimization
Describe
Add a pass which fuse elementwise operation with activations and add new attributes in the pass during runtime
This is another candidate solution of PR Add an elementwise + activation fusion pass. #36541, according to Achun and Hongyu's suggestion.