-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Dict #19976
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
Dict #19976
Conversation
Differential Revision: D15156384 Differential Version: 80987102
Differential Revision: D15156384 Differential Version: 80987420
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.
Looks pretty good, but the build seems to be broken.
Differential Revision: D15156384 Differential Version: 81123864
Differential Revision: D15156384 Differential Version: 81148985
Differential Revision: D15156384 Differential Version: 81201175
Differential Revision: D15156384 Differential Version: 81204262
Differential Revision: D15156384 Differential Version: 81214399
Differential Revision: D15156384 Differential Version: 81235671
Differential Revision: D15156384 Differential Version: 81242194
Differential Revision: D15156384 Differential Version: 81263200
Differential Revision: D15156384 Differential Version: 81279543
Differential Revision: D15156384 Differential Version: 81330634
Differential Revision: D15156384 Differential Version: 81395862
Differential Revision: D15156384 Differential Version: 81416436
Differential Revision: D15156384 Differential Version: 81423413
Summary: Pull Request resolved: pytorch/pytorch#19976 Implement a Dict type that allows us to abstract away from the concrete implementation used. The API is similar to std::unordered_map, but behind the scenes we can switch to any map implementation we like. ska::flat_hash_map, google dense map, or any future map implementation with better performance. Switching such an implementation choice does not have to break backwards compatibility of kernel code using the Dict type. Reviewed By: li-roy Differential Revision: D15156384 fbshipit-source-id: b9313ec4dd9acb3b6a0035345b6ba4f2a437d1e5
|
This pull request has been merged in c921290. |
|
This is a giant patch (nearly 2000 lines changes) that makes organization changes to JIT primitives (where is ivalue defined now? not in ivalue.h!). The reviews for it have 0 comments, the commit message doesn't discuss this reorganization, and no member of the JIT team was asked to review it. |
|
@smessmer this doesn't sound right. can you please get it reviewed properly next time. |
|
actually, probably this time |
|
Also, it broke ASAN |
Stack:
:white_circle: #20185 Extend testAvailableArgTypes 💚
:white_circle: #20184 Allow Dict type in c10 operators 💚
:black_circle: #19976 Dict 💚
Implement a Dict type that allows us to abstract away from the concrete implementation used.
The API is similar to std::unordered_map, but behind the scenes we can switch to any map implementation we like. ska::flat_hash_map, google dense map, or any future map implementation with better performance.
Switching such an implementation choice does not have to break backwards compatibility of kernel code using the Dict type.
Differential Revision: D15156384