SIGN IN SIGN UP

Fix missing move and bare new in pytree from_str_internal (#6803)

* Use std::variant to implement pytree Key

Pull Request resolved: https://github.com/pytorch/executorch/pull/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: https://github.com/pytorch/executorch/pull/6783

---------

Co-authored-by: Scott Wolchok <swolchok@fb.com>
P
pytorchbot committed
b6ebd3cdbcc4d79757a28a13cece0009ecd9732d
Parent: 15b1f39
Committed by GitHub <noreply@github.com> on 11/12/2024, 11:30:02 PM