Commit 15bb00c
authored
fix(pt/dp): make dpa2 convertable to
Fix #4295. BTW, I found that there seems no universal uts for
`convert-backend` command.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Updated `RepformerLayer` class to version 2, enhancing serialization
and deserialization processes.
- Introduced a new structure for residual variables within the
serialized data, improving organization and clarity.
- **Bug Fixes**
- Adjusted version compatibility checks in the `deserialize` method to
align with the new versioning scheme.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->.dp format (#4324)1 parent 0199ad5 commit 15bb00c
File tree
2 files changed
+22
-16
lines changed- deepmd
- dpmodel/descriptor
- pt/model/descriptor
2 files changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
1795 | | - | |
| 1795 | + | |
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
| |||
1877 | 1877 | | |
1878 | 1878 | | |
1879 | 1879 | | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
1883 | 1885 | | |
1884 | 1886 | | |
1885 | 1887 | | |
| |||
1894 | 1896 | | |
1895 | 1897 | | |
1896 | 1898 | | |
1897 | | - | |
| 1899 | + | |
1898 | 1900 | | |
1899 | 1901 | | |
1900 | 1902 | | |
| |||
1915 | 1917 | | |
1916 | 1918 | | |
1917 | 1919 | | |
1918 | | - | |
1919 | | - | |
1920 | | - | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
1921 | 1924 | | |
1922 | 1925 | | |
1923 | 1926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
| 1298 | + | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
| |||
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1386 | 1388 | | |
1387 | 1389 | | |
1388 | 1390 | | |
| |||
1397 | 1399 | | |
1398 | 1400 | | |
1399 | 1401 | | |
1400 | | - | |
| 1402 | + | |
1401 | 1403 | | |
1402 | 1404 | | |
1403 | 1405 | | |
| |||
1418 | 1420 | | |
1419 | 1421 | | |
1420 | 1422 | | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
1424 | 1427 | | |
1425 | 1428 | | |
1426 | 1429 | | |
| |||
0 commit comments