You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`node_ebd_ext` contains embedding on expanded atoms, which might be
large for a large cut-off. Current implementation do matmul first, then
gather tensor by the neighbors. This introduces saving
`sub_node_ext_update` of size nf * nall * ndim in each repflow layer,
where nall might be multiple times larger than nloc.
This PR do gathering first, then compute matmul. After this PR, the peak
memory size is of O(nlayer * nf * nloc), unrelated to `nall`.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Summary by CodeRabbit
- **New Features**
- Introduced an optional setting to enable or disable local atom index
mapping during descriptor computation, providing more flexibility in
non-parallel inference scenarios.
- **Bug Fixes**
- Enhanced test coverage and consistency checks to ensure descriptor
outputs remain equivalent whether local mapping is enabled or not.
- **Documentation**
- Improved parameter descriptions and comments to clarify the behavior
and shape of key variables related to local mapping.
- **Tests**
- Added new tests to validate the functional equivalence of descriptor
outputs with and without local mapping.
- Updated existing tests to support and verify the new local mapping
option.
- **Style**
- Improved assertion handling in tests by specifying absolute tolerance
for numerical comparisons.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Chun Cai <amoycaic@gmail.com>
Signed-off-by: Duo <50307526+iProzd@users.noreply.github.com>
Co-authored-by: Duo <50307526+iProzd@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
0 commit comments