Commit d3b44bf
fix GS serialization issue (#4984)
Summary:
Pull Request resolved: #4984
`object_from_json` mutates its input dicts by popping `__type` keys during
deserialization. In `generation_node_from_json`, `transition_criteria` and
`generation_pausing_criteria` are decoded sequentially via `object_from_json`.
Reviewed By: saitcakmak, Balandat
Differential Revision: D95443476
fbshipit-source-id: 2d309d902ff6bff4cf5556227d39ceb7608ced211 parent f973cb4 commit d3b44bf
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
934 | 935 | | |
935 | 936 | | |
936 | 937 | | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
937 | 944 | | |
938 | | - | |
| 945 | + | |
939 | 946 | | |
940 | 947 | | |
941 | 948 | | |
942 | 949 | | |
943 | | - | |
| 950 | + | |
944 | 951 | | |
945 | 952 | | |
946 | 953 | | |
| |||
0 commit comments