-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[functorch] linearize #94173
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
[functorch] linearize #94173
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/94173
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit e661335: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
f0d96a4 to
25a0b50
Compare
Chillee
left a comment
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!
| return tangents | ||
|
|
||
| jvp_graph = make_fx(trace_fn)(flat_tangents) | ||
| const_folded_jvp_graph = const_fold.split_const_subgraphs(jvp_graph) |
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.
hmmm... looking at the documentation, it seems like this one delays the constant folding until runtime. I wonder if it might be worth doing it here instead of upon the first invocation. Not a big deal, but might be easier to handle with compilation.
|
I am not sure why lintrunner is failing on the files that this PR hasn't touched. Any idea? Recent master looks to be green. |
|
@pytorchbot merge -f"lintrunner failing on unchanged files" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@pytorchbot revert -m "Broke lint runner" -c ignoredsignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@kshitij12345 your PR has been successfully reverted. |
This reverts commit b6b9e1e. Reverted #94173 on behalf of https://github.com/kshitij12345 due to Broke lint runner
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Fixes pytorch/functorch#724
TODO:
NOTE:
const_foldpass raises UserWarning -> #94374cc @zou3519 @Chillee @samdow @soumith @janeyx99