Commit b6ebd3c
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]>1 parent 15b1f39 commit b6ebd3c
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
489 | | - | |
| 492 | + | |
490 | 493 | | |
491 | 494 | | |
492 | | - | |
| 495 | + | |
493 | 496 | | |
494 | 497 | | |
495 | 498 | | |
| |||
509 | 512 | | |
510 | 513 | | |
511 | 514 | | |
512 | | - | |
| 515 | + | |
513 | 516 | | |
514 | 517 | | |
515 | 518 | | |
516 | 519 | | |
517 | 520 | | |
518 | 521 | | |
519 | | - | |
| 522 | + | |
520 | 523 | | |
521 | 524 | | |
522 | 525 | | |
| |||
549 | 552 | | |
550 | 553 | | |
551 | 554 | | |
552 | | - | |
| 555 | + | |
553 | 556 | | |
554 | 557 | | |
555 | 558 | | |
| |||
0 commit comments