-
Notifications
You must be signed in to change notification settings - Fork 24.8k
[scan] Autograd with partial gradient support #146285
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
Closed
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
f6586dd
WIP: Integration of scan autograd
bohnstingl bda8cb9
Introduced autograd for scan with partial gradients support
bohnstingl 34be923
Fixed CI test issue with graph
bohnstingl 5eadb1e
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl adfa593
Integrated code review comments
bohnstingl 7b41bde
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl c2465cf
Fixed type annotation
bohnstingl 5bc1d27
Removed reverse flag from backend and implemented reverse with torch.…
bohnstingl 2786a68
Fix of graph in testcase
bohnstingl 7f48b4f
Merge branch 'scan_flip_reverse' of github.com:bohnstingl/pytorch int…
bohnstingl 6717f9b
Integrated new reverse handling into scan autograd
8000
bohnstingl a60d2a8
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl 0343056
Fixed issues with testcases and with combine_fn now returning pytrees
bohnstingl 0dda954
[cond] don't trace fw and bw graph in autograd key
ydwu4 c11cac4
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 ebb5b57
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 46608f8
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 26e4a53
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 813c883
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl 9e4f3c3
Merge branch 'gh/ydwu4/222/head' of github.com:pytorch/pytorch into s…
bohnstingl 114c982
Update base for Update on "[cond] don't trace fw and bw graph in auto…
ydwu4 fdbfe11
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 7796ea9
Update base for Update on "[cond] don't trace fw and bw graph in auto…
ydwu4 6082a60
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 d33705f
Update base for Update on "[cond] don't trace fw and bw graph in auto…
ydwu4 7cee41c
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 23170b1
WIP: scan autograd
bohnstingl 0ac5a15
Merge branch 'gh/ydwu4/222/head' of github.com:pytorch/pytorch into s…
bohnstingl 93f5bab
Update base for Update on "[cond] don't trace fw and bw graph in auto…
ydwu4 ad92afa
Update on "[cond] don't trace fw and bw graph in autograd key"
ydwu4 5947348
Merge branch 'gh/ydwu4/222/head' of github.com:pytorch/pytorch into s…
bohnstingl 60fc08f
Working function of scan autograd with new infrastructure
bohnstingl 75fe416
Removed unnecessary code and other cleanups
bohnstingl 26c94e9
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl 357dde5
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl b018397
Fixed tracing issue causing missing fake meta values
bohnstingl 8a288d3
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl 63414f9
Fixed CI test
bohnstingl 66f0b37
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl b50e7b9
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl 0db488f
Fixed testcase
bohnstingl 9df0724
Integrated review feedback; before code cleanup
bohnstingl ffacadd
After cleanup and lintrunner
bohnstingl 4ce5f06
Fixes
bohnstingl 88084f5
Further cleanup and restructuring
bohnstingl 473db76
WIP: integration of code review
bohnstingl e6ca8b0
Added extensive documentation and lintrunner corrections
bohnstingl d27d50a
Revert change to cond.py
bohnstingl 0ee4d01
Removed unrelated testcases and fixed lint issues
bohnstingl 66c0ae1
Integrated review changes for documentation and test cases
bohnstingl c976b5e
Added some more comments
bohnstingl afa5d96
Introduced materialize_as_graph for combine_fn and for combine_bw_fn
8000
bohnstingl 6d67d3e
Merge branch 'main' of github.com:pytorch/pytorch into scan_autograd22
bohnstingl ebe8c22
Added bypass for autograd DispatchKey if no gradient for either the i…
bohnstingl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Added bypass for autograd DispatchKey if no gradient for either the i…
…nit, the xs or the additional_inputs is required
- Loading branch information
commit ebe8c227439d8b5f69efffa8b853cca235bc12f6
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.