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

Added new compileFunctions method #2531

Merged
merged 1 commit into from Mar 13, 2019
Merged

Conversation

gcatron
Copy link
Contributor

@gcatron gcatron commented Mar 13, 2019

Description: Added new compileFunctions method which takes an ArrayRef of functions and returns a vector of compiledFunctions. This allows the compile to reason over shared constants between functions. Also added a new unittest and updated backends.md
Testing: ninja test
Documentation: Updated backends.md
Related to #2045

Copy link
Contributor

@jackm321 jackm321 left a comment

Choose a reason for hiding this comment

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

LGTM

@gcatron gcatron merged commit 685551a into pytorch:master Mar 13, 2019
@gcatron gcatron deleted the add_multi_compile branch March 13, 2019 20:06
@nickgg
Copy link
Contributor

nickgg commented Mar 13, 2019

Hey @gcatron could we have used a Module here instead of an array of functions?

@gcatron
Copy link
Contributor Author

gcatron commented Mar 13, 2019

Hey @gcatron could we have used a Module here instead of an array of functions?
I don't think so, we don't necessarily want to compile all functions in the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants