Skip to content

Rewrite fallthrough to more closely match how C++ works#96304

Closed
ezyang wants to merge 3 commits intogh/ezyang/1893/basefrom
gh/ezyang/1893/head
Closed

Rewrite fallthrough to more closely match how C++ works#96304
ezyang wants to merge 3 commits intogh/ezyang/1893/basefrom
gh/ezyang/1893/head

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Mar 8, 2023

Stack from ghstack (oldest at bottom):

Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses #89037
in a better way than #95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang [email protected]

Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses #89037
in a better way than #95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang <[email protected]>

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 8, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/96304

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

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

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

Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses #89037
in a better way than #95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
@ezyang ezyang added topic: not user facing topic category release notes: composability release notes category topic: developer feature topic: bug fixes topic category and removed release notes: composability release notes category labels Mar 8, 2023
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

Yeah, it is much better to be consistent with C++

Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses #89037
in a better way than #95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
@ezyang
Copy link
Contributor Author

ezyang commented Mar 8, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 8, 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

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses pytorch/pytorch#89037
in a better way than pytorch/pytorch#95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang <[email protected]>
Pull Request resolved: pytorch/pytorch#96304
Approved by: https://github.com/zou3519, https://github.com/albanD, https://github.com/zhxchen17
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses pytorch/pytorch#89037
in a better way than pytorch/pytorch#95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang <[email protected]>
Pull Request resolved: pytorch/pytorch#96304
Approved by: https://github.com/zou3519, https://github.com/albanD, https://github.com/zhxchen17
ydwu4 added a commit to ydwu4/pytorch that referenced this pull request Mar 13, 2023
Fallthrough is modeled as a mask which we use to remove keys from the
compute dispatch key set for eligibility.

It's possible this addresses pytorch#89037
in a better way than pytorch#95891 but I
cannot easily tell as the original repro no longer works and the new PR
does not have a test.

Signed-off-by: Edward Z. Yang <[email protected]>
Pull Request resolved: pytorch#96304
Approved by: https://github.com/zou3519, https://github.com/albanD, https://github.com/zhxchen17
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/1893/head branch June 8, 2023 16:55
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: bug fixes topic category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants