Commit 3939786
feat(jax/array-api): dpa1 (#4160)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Updated method for converting input to NumPy arrays, enhancing
performance and compatibility with array-like structures.
- Simplified handling of weight, bias, and identity variables for
improved compatibility with array backends.
- Introduced new network classes and enhanced network management
functionalities.
- Added support for the new `array_api_strict` backend in testing.
- **Bug Fixes**
- Fixed serialization process to ensure accurate conversion of weights
and biases.
- **Tests**
- Added tests to validate the new functionalities and ensure
compatibility across various backends, including JAX and Array API
Strict.
- **Chores**
- Continued improvements to project structure and dependencies for
better maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 9a15bc0 commit 3939786
File tree
29 files changed
+1022
-173
lines changed- deepmd
- dpmodel
- descriptor
- utils
- jax
- descriptor
- utils
- source/tests
- array_api_strict
- descriptor
- utils
- common/dpmodel
- consistent
- descriptor
29 files changed
+1022
-173
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments