Commit 95ca4ad
feat(pt/dp): add dynamic sel for DPA3 (#4754)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced dynamic neighbor selection for the DPA3 descriptor,
enabling handling of variable neighbor counts without fixed padding.
- Added configuration options to enable dynamic selection
(`use_dynamic_sel`) and adjust normalization scaling
(`sel_reduce_factor`).
- Added new utility functions for aggregation and graph index
computation to support dynamic neighbor processing.
- **Bug Fixes**
- Corrected tensor split order in angle update logic for improved
accuracy.
- **Documentation**
- Enhanced argument documentation for new dynamic selection options.
- **Tests**
- Added comprehensive tests for dynamic selection mode, verifying
consistency across configurations.
- Updated existing test parameterizations to include dynamic selection
options.
- Integrated new descriptor and parameters into model test suites.
- **Chores**
- Extended public APIs to include new utility functions supporting
dynamic neighbor selection.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent adfa8ad commit 95ca4ad
17 files changed
Lines changed: 1654 additions & 191 deletions
File tree
- deepmd
- dpmodel
- descriptor
- utils
- pd/model/descriptor
- pt/model
- descriptor
- network
- utils
- source/tests
- consistent/descriptor
- pt/model
- universal/dpmodel
- descriptor
- model
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
126 | 138 | | |
127 | 139 | | |
128 | 140 | | |
| |||
150 | 162 | | |
151 | 163 | | |
152 | 164 | | |
| 165 | + | |
| 166 | + | |
153 | 167 | | |
154 | 168 | | |
155 | 169 | | |
| |||
176 | 190 | | |
177 | 191 | | |
178 | 192 | | |
| 193 | + | |
| 194 | + | |
179 | 195 | | |
180 | 196 | | |
181 | 197 | | |
| |||
207 | 223 | | |
208 | 224 | | |
209 | 225 | | |
| 226 | + | |
| 227 | + | |
210 | 228 | | |
211 | 229 | | |
212 | 230 | | |
| |||
303 | 321 | | |
304 | 322 | | |
305 | 323 | | |
| 324 | + | |
| 325 | + | |
306 | 326 | | |
307 | 327 | | |
308 | 328 | | |
| |||
0 commit comments