-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Prevent pattern matches across mutation ops in Inductor pre-grad FX passes #101124
Labels
bug
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Comments
oh this is literally the thing we were talking about today @bdhirsh |
williamwen42
added a commit
that referenced
this issue
May 18, 2023
…ion ops in inductor pre-grad FX passes" Per #101124 cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
williamwen42
added a commit
that referenced
this issue
May 18, 2023
…tor pre-grad FX passes" Per #101124 cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
williamwen42
added a commit
that referenced
this issue
May 18, 2023
…ion ops in inductor pre-grad FX passes" Per #101124 cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
williamwen42
added a commit
that referenced
this issue
May 18, 2023
…tor pre-grad FX passes" Per #101124 cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
pytorchmergebot
pushed a commit
that referenced
this issue
May 20, 2023
…asses (#101144) Per #101124 Pull Request resolved: #101144 Approved by: https://github.com/jansel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
The inductor pre-grad FX passes (https://github.com/pytorch/pytorch/blob/main/torch/_inductor/fx_passes/pre_grad.py) are unsafe with respect to mutation. We need to discard matches that cross a mutation op.
Example repro:
reveals that pre-grad FX passes currently match across mutation ops.
To run, add it to a test file (e.g. to
test/inductor/test_pattern_matcher.py
) and run as any other unittest.cc @ezyang @soumith @msaroufim @wconstab @ngimel @bdhirsh @anijain2305
The text was updated successfully, but these errors were encountered: