Commit 6cd6cc7
committed
[export] Add backwards compatibility tests for serialized exports
Recently we have found the need to evolve the serialization of
`jax.export.Exported`. E.g., in #33942 we have added a 32-bit
representation for `nr_devices`. This introduced a compatiblity
bug that was found by usersm and fixed in in #33685.
Here we add backwards compatibility tests. See the description
in the `export_serialization_back_compat_test.py` module docstring.
Note that this is separate from our previous set of backwards
compatibility tests for the lowering of custom calls
(in `export_back_compat_test.py`). However, we reuse some
of the same ideas, and we use the same directory for
storing saved old serializations.1 parent 50bdc72 commit 6cd6cc7
File tree
5 files changed
+244
-7
lines changed- jax/_src
- export
- internal_test_util/export_back_compat_test_data
- tests
5 files changed
+244
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 56 | + | |
62 | 57 | | |
63 | 58 | | |
64 | 59 | | |
| |||
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
128 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments