-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Deprecate untyped Dicts #22516
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
Deprecate untyped Dicts #22516
Conversation
Differential Revision: D15906387 Differential Version: 85235547
Differential Revision: D15914462 Differential Version: 85265428
Differential Revision: D15906387 Differential Version: 85316125
Differential Revision: D15914462 Differential Version: 85316120
Differential Revision: D15906387 Differential Version: 85337731
Differential Revision: D15914462 Differential Version: 85337732
Differential Revision: D15906387 Differential Version: 85373861
Differential Revision: D15914462 Differential Version: 85373860
Differential Revision: D15948098 Differential Version: 85395386
Differential Revision: D15906387 Differential Version: 85398730
Differential Revision: D15914462 Differential Version: 85401866
Differential Revision: D15948098 Differential Version: 85510078
Differential Revision: D15906387 Differential Version: 85510075
Differential Revision: D15914462 Differential Version: 85510076
Differential Revision: D15948098 Differential Version: 85520501
Differential Revision: D15906387 Differential Version: 85520502
Differential Revision: D15914462 Differential Version: 85520503
Differential Revision: D15948098 Differential Version: 85559958
Differential Revision: D15906387 Differential Version: 85559959
Differential Revision: D15914462 Differential Version: 85559961
Differential Revision: D15906387 Differential Version: 85650910
Differential Revision: D15914462 Differential Version: 85650911
Differential Revision: D15906387 Differential Version: 85727283
Differential Revision: D15914462 Differential Version: 85727285
Differential Revision: D15914462 Differential Version: 86027332
Differential Revision: D15914462 Differential Version: 86030563
Differential Revision: D15914462 Differential Version: 86030907
Differential Revision: D15914462 Differential Version: 86031209
Differential Revision: D15914462 Differential Version: 86035561
Differential Revision: D16115215 Differential Version: 86035562
Differential Revision: D15914462 Differential Version: 86043406
Differential Revision: D16115215 Differential Version: 86043409
Differential Revision: D16115215 Differential Version: 86049340
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok by itself, but what do you plan to do with pickler/interpreter instructions?
Also we need to be BC, so probably there are models already with the dict construct instruction
|
|
Differential Revision: D16115215 Differential Version: 86101224
|
This pull request has been merged in a09150a. |
Summary: Pull Request resolved: pytorch/pytorch#22516 Force anybody creating an untyped Dict to call c10::impl::deprecatedUntypedDict(). This should hopefully make it clear that this is not public API and prevent people from using it. Differential Revision: D16115215 fbshipit-source-id: 2ef4cb443da1cdf4ebf5b99851f69de0be730b97
|
We do serialize the types of attributes, but it's in a slightly different part of the code from where the dict gets created |
Stack:
:white_circle: #22518 Close loophole to create untyped tuples 💛
:white_circle: #22517 Deprecate untyped Lists 💛
:black_circle: #22516 Deprecate untyped Dicts 💚
Force anybody creating an untyped Dict to call c10::impl::deprecatedUntypedDict().
This should hopefully make it clear that this is not public API and prevent people from using it.
Differential Revision: D16115215