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
SymIntify functorch vmap #101409
SymIntify functorch vmap #101409
Conversation
Signed-off-by: Edward Z. Yang <ezyang@meta.com> [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/101409
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 49d6afd: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
A lot of missing std::moves in the call dispatch of this PR, please add them.
Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
The UB was: - We grab a reference to the last element in the interpreter stack (DynamicLayerStack) - Then, we pop the last element in the interpreter stack - Finally, we continue to use the reference to the last element. The fix is to stop using that reference and instead use the popped element. Test Plan: - It's difficult to write a test for this PR so I didn't - Patched in #101409 and verified that this PR fixes the bad_variant_access it was experiencing under clang compilers. [ghstack-poisoned]
The UB was: - We grab a reference to the last element in the interpreter stack (DynamicLayerStack) - Then, we pop the last element in the interpreter stack - Finally, we continue to use the reference to the last element. The fix is to stop using that reference and instead use the popped element. Test Plan: - It's difficult to write a test for this PR so I didn't - Patched in #101409 and verified that this PR fixes the bad_variant_access it was experiencing under clang compilers. ghstack-source-id: d1f7bd3f68aac7aadcef13e7fff004af81f6a185 Pull Request resolved: #101568
The UB was: - We grab a reference to the last element in the interpreter stack (DynamicLayerStack) - Then, we pop the last element in the interpreter stack - Finally, we continue to use the reference to the last element. The fix is to stop using that reference and instead use the popped element. Test Plan: - It's difficult to write a test for this PR so I didn't - Patched in #101409 and verified that this PR fixes the bad_variant_access it was experiencing under clang compilers. Pull Request resolved: #101568 Approved by: https://github.com/ezyang, https://github.com/Skylion007
Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
@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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-12-py3-arm64 / test (default, 3, 3, macos-m1-12) Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge -f "doesn't look failing to me" |
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 |
The UB was: - We grab a reference to the last element in the interpreter stack (DynamicLayerStack) - Then, we pop the last element in the interpreter stack - Finally, we continue to use the reference to the last element. The fix is to stop using that reference and instead use the popped element. Test Plan: - It's difficult to write a test for this PR so I didn't - Patched in #101409 and verified that this PR fixes the bad_variant_access it was experiencing under clang compilers. Pull Request resolved: #101568 Approved by: https://github.com/ezyang, https://github.com/Skylion007
Stack from ghstack (oldest at bottom):
Signed-off-by: Edward Z. Yang ezyang@meta.com