Skip to content

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented Jul 3, 2019

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

smessmer added 30 commits June 19, 2019 18:10
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
@pytorchbot pytorchbot added oncall: jit Add this issue/PR to JIT oncall triage queue module: internals Related to internal abstractions in c10 and ATen labels Jul 3, 2019
smessmer added 2 commits July 3, 2019 18:53
Differential Revision: D15914462
Differential Version: 86043406
Differential Revision: D16115215
Differential Version: 86043409
@smessmer smessmer requested review from dzhulgakov and zdevito July 4, 2019 06:11
Differential Revision: D16115215
Differential Version: 86049340
Copy link
Collaborator

@dzhulgakov dzhulgakov left a 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

@smessmer
Copy link
Contributor Author

smessmer commented Jul 5, 2019

torch::Dict wasn't part of PyTorch 1.1, that's why I want to change this before we release 1.2. I haven't looked too closely at how to fix these call sites yet. The jit ops can maybe look at the graph to figure out the type. Pickler, not sure. Do we have to serialize the type? If yes, that's probably something we should also change before the 1.2 release.

Differential Revision: D16115215
Differential Version: 86101224
@smessmer smessmer changed the base branch from export-D15914462 to master July 5, 2019 23:58
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a09150a.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 6, 2019
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
@dzhulgakov
Copy link
Collaborator

We do serialize the types of attributes, but it's in a slightly different part of the code from where the dict gets created

@ezyang ezyang deleted the export-D16115215 branch July 19, 2019 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: internals Related to internal abstractions in c10 and ATen oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants