Skip to content

[PyTorch] Use c10::FastMap for memoizing in Pickler#96360

Closed
swolchok wants to merge 2 commits intogh/swolchok/557/basefrom
gh/swolchok/557/head
Closed

[PyTorch] Use c10::FastMap for memoizing in Pickler#96360
swolchok wants to merge 2 commits intogh/swolchok/557/basefrom
gh/swolchok/557/head

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Mar 8, 2023

Stack from ghstack (oldest at bottom):

These maps don't rely on reference stability, so FastMap should be fine.

Differential Revision: D43926671

These maps don't rely on reference stability, so FastMap should be fine.

Differential Revision: [D43926671](https://our.internmc.facebook.com/intern/diff/D43926671/)

[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/96360

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

✅ No Failures

As of commit 48c8dce:
💚 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 the release notes: jit release notes category label Mar 8, 2023
@swolchok swolchok requested a review from ezyang March 8, 2023 23:25
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.

ezpz lemon squeezy

These maps don't rely on reference stability, so FastMap should be fine.

Differential Revision: [D43926671](https://our.internmc.facebook.com/intern/diff/D43926671/)

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 9, 2023
Pull Request resolved: #96360

These maps don't rely on reference stability, so FastMap should be fine.
ghstack-source-id: 182387391

Differential Revision: [D43926671](https://our.internmc.facebook.com/intern/diff/D43926671/)
@swolchok
Copy link
Contributor Author

swolchok commented Mar 9, 2023

@pytorchbot merge

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

@izaitsevfb
Copy link
Contributor

@pytorchbot revert -m "Breaks internal tests, see D43926671" -c nosignal

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

Can't revert PR that was landed via phabricator as D43926671. Please revert by going to the internal diff and clicking Unland.

izaitsevfb added a commit to izaitsevfb/pytorch that referenced this pull request Mar 10, 2023
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
swolchok added a commit that referenced this pull request Mar 13, 2023
These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 13, 2023
These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

ghstack-source-id: 182737118
Pull Request resolved: #96688
swolchok added a commit that referenced this pull request Mar 21, 2023
Pull Request resolved: #96688

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.
ghstack-source-id: 183500502

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)
swolchok added a commit that referenced this pull request Mar 21, 2023
… memoizing in Pickler"

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 21, 2023
…ckler"

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 27, 2023
… memoizing in Pickler"

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 27, 2023
…ckler"

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 27, 2023
… memoizing in Pickler"

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 27, 2023
…ckler"

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Mar 27, 2023
Pull Request resolved: #96688

These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.
ghstack-source-id: 184199588

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)
pytorchmergebot pushed a commit that referenced this pull request Mar 28, 2023
These maps don't rely on reference stability, so FastMap should be fine.

First try (#96360) was reverted because it broke internal tests.

Differential Revision: [D43995796](https://our.internmc.facebook.com/intern/diff/D43995796/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D43995796/)!
Pull Request resolved: #96688
Approved by: https://github.com/malfet
@facebook-github-bot facebook-github-bot deleted the gh/swolchok/557/head branch June 8, 2023 18:52
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 release notes: jit release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants