-
Notifications
You must be signed in to change notification settings - Fork 607
Use std::variant to implement pytree Key #6701
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
Use std::variant to implement pytree Key #6701
Conversation
Key was a struct that should've been a union; std::variant makes using a union much easier. Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6701
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit fc103c0 with merge base dc41596 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Key was a struct that should've been a union; std::variant makes using a union much easier. Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) ghstack-source-id: 252232728 Pull Request resolved: #6701
This pull request was exported from Phabricator. Differential Revision: D65575184 |
Key was a struct that should've been a union; std::variant makes using a union much easier. Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D65575184 |
Key was a struct that should've been a union; std::variant makes using a union much easier. Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D65575184 |
Key was a struct that should've been a union; std::variant makes using a union much easier. Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D65575184 |
Key was a struct that should've been a union; std::variant makes using a union much easier. Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D65575184 |
Pull Request resolved: #6701 Key was a struct that should've been a union; std::variant makes using a union much easier. ghstack-source-id: 253128071 @exported-using-ghexport Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) Co-authored-by: Scott Wolchok <[email protected]>
* Use std::variant to implement pytree Key Pull Request resolved: #6701 Key was a struct that should've been a union; std::variant makes using a union much easier. ghstack-source-id: 253128071 @exported-using-ghexport Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/) * Fix missing move and bare new in pytree from_str_internal Just a couple minor fixes. Differential Revision: [D65576543](https://our.internmc.facebook.com/intern/diff/D65576543/) ghstack-source-id: 253128072 Pull Request resolved: #6783 --------- Co-authored-by: Scott Wolchok <[email protected]>
Pull Request resolved: pytorch/executorch#6701 Key was a struct that should've been a union; std::variant makes using a union much easier. ghstack-source-id: 252630473 @exported-using-ghexport Differential Revision: [D65575184](https://our.internmc.facebook.com/intern/diff/D65575184/)
Stack from ghstack (oldest at bottom):
Key was a struct that should've been a union; std::variant makes using a union much easier.
Differential Revision: D65575184