Commit c2e6c94
committed
fix(tf): fix dplr Python inference (#4753)
Fix #4625.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Bug Fixes**
- Improved handling of modifier type decoding for more accurate output.
- Corrected model type checking and output dictionary keys during
evaluation.
- Enhanced input sorting logic for atom types with multiple dimensions.
- **Tests**
- Updated test data and expected values to reflect recent changes.
- Adjusted test logic to align with updated evaluation behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
(cherry picked from commit 2fa4064)1 parent ab0396d commit c2e6c94
File tree
3 files changed
+52539
-17
lines changed- deepmd/tf/infer
- source
- lmp/tests
- tests/tf
3 files changed
+52539
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| |||
761 | 763 | | |
762 | 764 | | |
763 | 765 | | |
764 | | - | |
| 766 | + | |
765 | 767 | | |
766 | 768 | | |
767 | 769 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
773 | 777 | | |
774 | 778 | | |
775 | 779 | | |
| |||
1350 | 1354 | | |
1351 | 1355 | | |
1352 | 1356 | | |
| 1357 | + | |
| 1358 | + | |
1353 | 1359 | | |
1354 | 1360 | | |
1355 | 1361 | | |
| |||
0 commit comments