8000 setitem node shouldn't be deadcode eliminated by leslie-fang-intel · Pull Request #145714 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

setitem node shouldn't be deadcode eliminated #145714

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

Conversation

leslie-fang-intel
Copy link
Collaborator
@leslie-fang-intel leslie-fang-intel commented Jan 27, 2025

Stack from ghstack (oldest at bottom):

Summary
Fix issue #145697. The operator.setitem has been eliminated as dead code, causing a correctness issue. Mark it as impure in this PR to avoid this side effect.

TestPlan

python -u -m pytest -s -v test/fx/test_dce_pass.py -k test_keep_setitem

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Jan 27, 2025
Copy link
pytorch-bot bot commented Jan 27, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 7d23599 with merge base c6ad083 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@leslie-fang-intel leslie-fang-intel added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 27, 2025
[ghstack-poisoned]
leslie-fang-intel added a commit that referenced this pull request Jan 27, 2025
ghstack-source-id: daee607
Pull Request resolved: #145714
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 27, 2025 02:52 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 27, 2025 02:52 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 27, 2025 02:52 Inactive
Copy link
Contributor
@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Shouldn't have been in the graph in the first place...

@ezyang
Copy link
Contributor
ezyang commented Jan 27, 2025

@pytorchbot merge

@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

nWEIdia pushed a commit to nWEIdia/pytorch that referenced this pull request Jan 27, 2025
**Summary**
Fix issue pytorch#145697. The `operator.setitem` has been eliminated as dead code, causing a correctness issue. Mark it as impure in this PR to avoid this side effect.

**TestPlan**
```
python -u -m pytest -s -v test/fx/test_dce_pass.py -k test_keep_setitem
```

Pull Request resolved: pytorch#145714
Approved by: https://github.com/ezyang
@github-actions github-actions bot deleted the gh/leslie-fang-intel/179/head branch February 28, 2025 02:10
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 fx Merged open source release notes: fx release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0