-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Relay][BYOCG] Propagate constant to subgraphs #5094
Conversation
Thank you! |
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
I think @lhutton1 has had an issue that might be related, maybe he can take a look. |
Just tested it out with my codegen and works well, thanks for this! |
Thanks everybody. This is now merged. |
* bind constant to subgraphs * con -> constant
* bind constant to subgraphs * con -> constant
Currently, all constants are not propagated to the functions that will be handled by external codegen. This may cause some performance issue if a function is frequently used as you will need to pass the constants multiple times to accelerates. This PR binds the constants to the new functions and propagate them. As expected, this will need the 3rd-party codegen to handle the constants by themselves.
@comaniac @mbaret @soiferj @trevor-m @tqchen