Skip to content

Conversation

voznesenskym
Copy link
Collaborator

@voznesenskym voznesenskym commented Jan 23, 2023

@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Jan 23, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Jan 23, 2023

🔗 Helpful Links

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

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

✅ No Failures

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

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

@@ -26,6 +26,17 @@
from sympy.printing.precedence import precedence # type: ignore[import] # noqa: F401
from sympy.printing.str import StrPrinter # type: ignore[import]
HAS_SYMPY = True

original_expand = sympy.expand
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note - this is a micro optimization on top of a bigger one, the lru_cache. We can make this PR simpler at a cost of a little perf by only caching our safe_expand instead of applying it to all sympy expand.

@voznesenskym voznesenskym changed the title [RFC] Patch sympy with lru_cached safe helper (~25% tracing speedup?) lru_cache shape expansion (20-25% speedup on local bench) Jan 23, 2023
@ezyang
Copy link
Contributor

ezyang commented Jan 24, 2023

but you should bug @Chillee to review this PR

@albanD albanD removed their request for review January 24, 2023 10:39
@voznesenskym
Copy link
Collaborator Author

@pytorchbot merge

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

@github-actions github-actions bot deleted the voz/lru_shapes branch July 25, 2024 01:56
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 module: dynamo release notes: fx release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants