Commit 3cb2b4c
Han Wang
fix(tests): import deepmd.pt before load_custom_ops in gen_model_devi
All other gen scripts import from deepmd.pt.utils.serialization before
calling load_custom_ops(), which loads the installed libdeepmd_op_pt.so
first. The guard in load_custom_ops() then skips the build-dir copy.
gen_model_devi.py was missing this import, so load_custom_ops() loaded
the build-dir .so first, then the later deepmd.infer import loaded the
installed .so — triggering a duplicate op registration crash.1 parent d9f317f commit 3cb2b4c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments