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

[sym_shapes][perf] Use sympy xreplace instead of subs #124208

Closed
wants to merge 2 commits into from

Conversation

IvanKobzarev
Copy link
Contributor

@IvanKobzarev IvanKobzarev commented Apr 16, 2024

Copy link

pytorch-bot bot commented Apr 16, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 013ad44 with merge base 72271fb (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added ciflow/inductor release notes: fx release notes category labels Apr 16, 2024
IvanKobzarev added a commit that referenced this pull request Apr 16, 2024
ghstack-source-id: 28268c69a15cab505f9927efdd531c25ee37ac05
Pull Request resolved: #124208
@IvanKobzarev
Copy link
Contributor Author

@IvanKobzarev has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 16, 2024
@ezyang ezyang requested a review from lezcano April 16, 2024 20:34
@ezyang
Copy link
Contributor

ezyang commented Apr 16, 2024

cc @asmeurer

@ezyang
Copy link
Contributor

ezyang commented Apr 16, 2024

looks like you need to make the xreplace dicts

IvanKobzarev added a commit that referenced this pull request Apr 17, 2024
ghstack-source-id: 8a282cc426a0ed5db0ebceff1a51e229bac55eb2
Pull Request resolved: #124208
@IvanKobzarev
Copy link
Contributor Author

@IvanKobzarev has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

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

Would it be too mad to write a regression test that looks at the source of symbolic_shapes.py and perhaps the files under the utils/_sympy folder and makes sure we are not using sub?

@lezcano
Copy link
Collaborator

lezcano commented Apr 18, 2024

This is a dupe of #124207. Which one are we going with?

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge -f 'Landed internally'

(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally)

@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). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: fx release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants