Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing move and bare new in pytree from_str_internal (pytorch#6803)
* Use std::variant to implement pytree Key Pull Request resolved: pytorch#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: pytorch#6783 --------- Co-authored-by: Scott Wolchok <[email protected]>
- Loading branch information