Commit b302774
Create copies of Pathways arrays before starting the serialization in orbax handler.
This prevents the buffers from being deallocated if the user discards the array before the asynchronous save operation completes.
PiperOrigin-RevId: 7648333391 parent 873ec9a commit b302774
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
0 commit comments