Skip to content

Lower trivial differentiable subgraphs #11110

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

Closed
wants to merge 2 commits into from

Conversation

apaszke
Copy link
Contributor

@apaszke apaszke commented Aug 30, 2018

@apaszke apaszke added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 30, 2018
Copy link
Contributor

@zdevito zdevito left a comment

Choose a reason for hiding this comment

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

Can we add a test somehow?

@@ -53,6 +54,7 @@ struct ExecutionPlan {
, graph(std::move(graph)) {}

void run(Stack& stack) const {
std::cout << *graph << std::endl;

This comment was marked as off-topic.

We create differentiable subgraphs in the JIT so that we can apply
optimizations which would normally make it impossible to run the
code with autograd. However, in many cases we are too eager about this,
and the graphs we slice and up being trivial, and not optimizations are
actually applied. In this case, it's better to inline them back and make
use of specialized autograd functions, instead of our generic graph
implementations.
@apaszke apaszke force-pushed the jit_lower_diff_subgraphs branch from cb5f4d5 to 229bae2 Compare August 31, 2018 18:16
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

apaszke has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

apaszke has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@apaszke apaszke deleted the jit_lower_diff_subgraphs branch September 4, 2018 14:52
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
zdevito
Pull Request resolved: pytorch#11110

Differential Revision: D9616408

Pulled By: apaszke

fbshipit-source-id: f1ae77d698bf0ada32f2c1c3f587e46a4f57a867
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oncall: jit Add this issue/PR to JIT oncall triage queue open source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants