-
Notifications
You must be signed in to change notification settings - Fork 22k
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
[pytree] update treespec dict keys access #116372
base: gh/XuehaiPan/20/base
Are you sure you want to change the base?
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/116372
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit fe223f4 with merge base 92ca17d (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
ghstack-source-id: 2eed5972c318ce90be375b13d9be2d9df3c78cf0 Pull Request resolved: pytorch#116372
It might be too late for this, we are able to serialize TreeSpec and that means that the context is a part of the public contract |
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
ghstack-source-id: 6f72467e3368ecfa89b2036347bd91ccf74e71b2 Pull Request resolved: pytorch#116372
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
ghstack-source-id: 596034f298efc5cf9f0a84fd44df4e87c720de71 Pull Request resolved: pytorch#116372
1. Add a new method `treespec.entries()` 2. Change `treespec.context` access to `treespec.entries()` to hide the implementation details for the `dict` treespec. cc zou3519 [ghstack-poisoned]
ghstack-source-id: 74f2dd1fb40952911c66928c38688fdbff499787 Pull Request resolved: pytorch#116372
ghstack-source-id: 943b1094692a00185c5d6d36291d1c7432a8f72a Pull Request resolved: pytorch#116372
ghstack-source-id: 261e5051ee8e80c2fe894ec1b9c809465c97a575 Pull Request resolved: pytorch#116372
ghstack-source-id: a055c56ada5bbac024a994d2834eb2ca48a977ec Pull Request resolved: pytorch#116372
ghstack-source-id: dac35c4a1d21efb02adb1bdd2079ccf7169214a0 Pull Request resolved: pytorch#116372
ghstack-source-id: dac35c4a1d21efb02adb1bdd2079ccf7169214a0 Pull Request resolved: pytorch#116372
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack (oldest at bottom):
dict
in sorted key ordering #114947context
andchildren_specs
as private implementation details #116375children_specs
access #116374treespec.entries()
treespec.context
access totreespec.entries()
to hide the implementation details for thedict
treespec.cc @zou3519