Commit 4865c4e
Han Wang
chore: drop redundant
After 87c9f3f ``deepmd.pt_expt.utils.comm`` self-bootstraps
``libdeepmd_op_pt.so`` via ``_check_underlying_ops_loaded()``, so the
explicit ``import deepmd.pt`` preloads in conftest.py and
test_border_op_backward.py are no longer needed.
Closes 2 of the 13 GitHub Advanced Security CodeQL "unused import"
alerts on the PR. The remaining 5 Python alerts (other tests'
``import deepmd.pt_expt.utils.comm`` for opaque-op registration) and
6 C++ alerts (TORCH_LIBRARY_* / border_op_export reachable only
through macro-expanded static initialization) are CodeQL false
positives that need to be dismissed in the GitHub Security UI rather
than fixed in source.import deepmd.pt preloads1 parent 87c9f3f commit 4865c4e
2 files changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments