Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix errors for zero atom inputs #4005
fix: fix errors for zero atom inputs #4005
Changes from all commits
fa94e8e
29c1b58
747e1c9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 203 in deepmd/dpmodel/atomic_model/base_atomic_model.py
Codecov / codecov/patch
deepmd/dpmodel/atomic_model/base_atomic_model.py#L203
Check warning on line 490 in deepmd/dpmodel/descriptor/dpa1.py
Codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa1.py#L490
Check warning on line 840 in deepmd/dpmodel/descriptor/dpa1.py
Codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa1.py#L839-L840
Check warning on line 853 in deepmd/dpmodel/descriptor/dpa1.py
Codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa1.py#L852-L853
Check warning on line 882 in deepmd/dpmodel/descriptor/dpa1.py
Codecov / codecov/patch
deepmd/dpmodel/descriptor/dpa1.py#L882
Check warning on line 398 in deepmd/dpmodel/descriptor/repformers.py
Codecov / codecov/patch
deepmd/dpmodel/descriptor/repformers.py#L398
Check warning on line 344 in deepmd/dpmodel/descriptor/se_r.py
Codecov / codecov/patch
deepmd/dpmodel/descriptor/se_r.py#L344
Check warning on line 99 in deepmd/dpmodel/utils/nlist.py
Codecov / codecov/patch
deepmd/dpmodel/utils/nlist.py#L98-L99
Check warning on line 101 in deepmd/dpmodel/utils/nlist.py
Codecov / codecov/patch
deepmd/dpmodel/utils/nlist.py#L101
Check warning on line 104 in deepmd/dpmodel/utils/nlist.py
Codecov / codecov/patch
deepmd/dpmodel/utils/nlist.py#L104
Check warning on line 261 in deepmd/pt/model/atomic_model/base_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/base_atomic_model.py#L259-L261
Check warning on line 508 in deepmd/pt/model/descriptor/repformers.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/repformers.py#L508
Check warning on line 620 in deepmd/pt/model/descriptor/se_a.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_a.py#L620
Check warning on line 661 in deepmd/pt/model/descriptor/se_a.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_a.py#L661
Check warning on line 703 in deepmd/pt/model/descriptor/se_a.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_a.py#L702-L703
Check warning on line 346 in deepmd/pt/model/descriptor/se_r.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_r.py#L346
Check warning on line 371 in deepmd/pt/model/descriptor/se_r.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_r.py#L371
Check warning on line 385 in deepmd/pt/model/descriptor/se_r.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_r.py#L385
Check warning on line 668 in deepmd/pt/model/descriptor/se_t.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_t.py#L668
Check warning on line 691 in deepmd/pt/model/descriptor/se_t.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_t.py#L691
Check warning on line 718 in deepmd/pt/model/descriptor/se_t.py
Codecov / codecov/patch
deepmd/pt/model/descriptor/se_t.py#L718
Check warning on line 127 in deepmd/pt/model/model/spin_model.py
Codecov / codecov/patch
deepmd/pt/model/model/spin_model.py#L124-L127
Check warning on line 172 in deepmd/pt/model/model/spin_model.py
Codecov / codecov/patch
deepmd/pt/model/model/spin_model.py#L170-L172
Check warning on line 194 in deepmd/pt/model/task/dipole.py
Codecov / codecov/patch
deepmd/pt/model/task/dipole.py#L194
Check warning on line 245 in deepmd/pt/model/task/polarizability.py
Codecov / codecov/patch
deepmd/pt/model/task/polarizability.py#L245
Check warning on line 103 in deepmd/pt/utils/nlist.py
Codecov / codecov/patch
deepmd/pt/utils/nlist.py#L102-L103
Check warning on line 105 in deepmd/pt/utils/nlist.py
Codecov / codecov/patch
deepmd/pt/utils/nlist.py#L105
Check warning on line 108 in deepmd/pt/utils/nlist.py
Codecov / codecov/patch
deepmd/pt/utils/nlist.py#L108