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

SymIntify functorch vmap #101409

Closed
wants to merge 3 commits into from
Closed

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented May 15, 2023

Stack from ghstack (oldest at bottom):

Signed-off-by: Edward Z. Yang ezyang@meta.com

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented May 15, 2023

🔗 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 Failures

As of commit 49d6afd:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@Skylion007 Skylion007 added the topic: not user facing topic category label May 15, 2023
Copy link
Collaborator

@Skylion007 Skylion007 left a 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.

@ezyang ezyang requested a review from zou3519 May 15, 2023 15:24
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
@albanD albanD removed their request for review May 15, 2023 16:52
zou3519 added a commit that referenced this pull request May 16, 2023
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]
zou3519 added a commit that referenced this pull request May 16, 2023
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
pytorchmergebot pushed a commit that referenced this pull request May 17, 2023
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]
@ezyang
Copy link
Contributor Author

ezyang commented May 18, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 18, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 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 team Raised by workflow job

@ezyang
Copy link
Contributor Author

ezyang commented May 19, 2023

@pytorchbot merge -f "doesn't look failing to me"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

jcaip pushed a commit that referenced this pull request May 23, 2023
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
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/2098/head branch June 8, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants