Commit 1e5bc44
feat: add export_to_enzymejax for automated JAX/EnzymeAD integration (#1934)
* Initial plan
* Add export_to_enzymeax function for JAX integration
Co-authored-by: avik-pal <30564094+avik-pal@users.noreply.github.com>
* Add comprehensive tests for export_to_enzymeax
Co-authored-by: avik-pal <30564094+avik-pal@users.noreply.github.com>
* Fix code review issues: binary mode, ComplexF16 support, Python indentation
Co-authored-by: avik-pal <30564094+avik-pal@users.noreply.github.com>
* Add documentation for export_to_enzymeax function
Co-authored-by: avik-pal <30564094+avik-pal@users.noreply.github.com>
* chore: run formatter
* chore: cleanup
* fix: proper export
* Use existing seen_args infrastructure instead of manual inverse map
Co-authored-by: wsmoses <1260124+wsmoses@users.noreply.github.com>
* Rename export_to_enzymeax to export_to_enzymejax
Co-authored-by: wsmoses <30564094+wsmoses@users.noreply.github.com>
* feat: add path to docstring
* fix: use NPZ for proper export
* feat: add size checks
* feat: automatically run jit
* feat: preserve sharding
* test: exported functions
* test: cleanup
* Apply suggestions from code review
* Apply suggestion from @avik-pal
* Apply suggestion from @avik-pal
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: avik-pal <30564094+avik-pal@users.noreply.github.com>
Co-authored-by: Avik Pal <avikpal@mit.edu>
Co-authored-by: wsmoses <1260124+wsmoses@users.noreply.github.com>
Co-authored-by: wsmoses <30564094+wsmoses@users.noreply.github.com>1 parent e9fbc25 commit 1e5bc44
File tree
13 files changed
+691
-47
lines changed- docs/src/api
- ext
- ReactantPythonCallExt
- src
- serialization
- test
- integration
13 files changed
+691
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 19 | | |
37 | 20 | | |
38 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1411 | 1411 | | |
1412 | 1412 | | |
1413 | 1413 | | |
1414 | | - | |
| 1414 | + | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | 1417 | | |
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1444 | 1449 | | |
1445 | 1450 | | |
1446 | 1451 | | |
| |||
3571 | 3576 | | |
3572 | 3577 | | |
3573 | 3578 | | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
3574 | 3582 | | |
3575 | 3583 | | |
3576 | 3584 | | |
| |||
3584 | 3592 | | |
3585 | 3593 | | |
3586 | 3594 | | |
3587 | | - | |
3588 | | - | |
3589 | | - | |
3590 | 3595 | | |
3591 | 3596 | | |
3592 | 3597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
| 1000 | + | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
| |||
0 commit comments