Commit 188dae3
authored
fix(jax): setattr
`case_embd` was supported but the JAX backend was not touched.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Ensured the case_embd parameter is consistently converted and handled
during fitting, improving compatibility across array backends and
preventing mis-coercion.
* **Tests**
* Adjusted test setup to reset the default computation graph before
enabling eager execution, stabilizing related test runs.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>case_embd (#5104)1 parent 5274f69 commit 188dae3
3 files changed
Lines changed: 3 additions & 0 deletions
File tree
- deepmd/jax/fitting
- source/tests
- array_api_strict/fitting
- pt
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments