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
Chore: refactor dpmodel #3663
Chore: refactor dpmodel #3663
Changes from 36 commits
02e546c
4c026fb
81573d5
3ad9637
c64e520
acd1b99
db2751c
9612b02
a7384d2
30bd378
6c9185e
24859ac
754e18a
56accdf
9f437ed
ed34307
72a34fc
5355428
257936d
a51a792
4b14d54
5484375
3c5c795
224ef27
bd079b9
53dbe13
78ff90d
7f99512
23fa34d
16583de
23fd899
4fe3661
576e75d
d34a7d4
3173978
1e54270
353ca6d
8de02ee
e2a80b3
efcf951
0c100fa
752132d
ff30173
7399d3e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 38 in deepmd/dpmodel/model/base_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/base_model.py#L38
Check warning on line 154 in deepmd/dpmodel/model/base_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/base_model.py#L154
Check warning on line 2 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L2
Check warning on line 5 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L5
Check warning on line 9 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L9
Check warning on line 12 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L12
Check warning on line 16 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L16
Check warning on line 21 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L19-L21
Check warning on line 27 in deepmd/dpmodel/model/ener_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/ener_model.py#L26-L27
Check warning on line 8 in deepmd/dpmodel/model/model.py
Codecov / codecov/patch
deepmd/dpmodel/model/model.py#L8
Check warning on line 19 in deepmd/dpmodel/model/model.py
Codecov / codecov/patch
deepmd/dpmodel/model/model.py#L19
Check warning on line 44 in deepmd/dpmodel/model/model.py
Codecov / codecov/patch
deepmd/dpmodel/model/model.py#L44
Check warning on line 265 in deepmd/dpmodel/model/spin_model.py
Codecov / codecov/patch
deepmd/dpmodel/model/spin_model.py#L265
Check warning on line 20 in deepmd/pt/model/atomic_model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/__init__.py#L20
Check warning on line 23 in deepmd/pt/model/atomic_model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/__init__.py#L23
Check warning on line 29 in deepmd/pt/model/atomic_model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/__init__.py#L29
Check warning on line 39 in deepmd/pt/model/atomic_model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/__init__.py#L39
Check warning on line 2 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L2
Check warning on line 6 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L6
Check warning on line 8 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L8
Check warning on line 12 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L12
Check warning on line 20 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L17-L20
Check warning on line 22 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L22
Check warning on line 28 in deepmd/pt/model/atomic_model/dipole_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dipole_atomic_model.py#L28
Check warning on line 2 in deepmd/pt/model/atomic_model/dos_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dos_atomic_model.py#L2
Check warning on line 6 in deepmd/pt/model/atomic_model/dos_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dos_atomic_model.py#L6
Check warning on line 14 in deepmd/pt/model/atomic_model/dos_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/dos_atomic_model.py#L11-L14
Check warning on line 2 in deepmd/pt/model/atomic_model/energy_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/energy_atomic_model.py#L2
Check warning on line 8 in deepmd/pt/model/atomic_model/energy_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/energy_atomic_model.py#L8
Check warning on line 15 in deepmd/pt/model/atomic_model/energy_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/energy_atomic_model.py#L13-L15
Check warning on line 20 in deepmd/pt/model/atomic_model/energy_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/energy_atomic_model.py#L20
Check warning on line 2 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L2
Check warning on line 6 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L6
Check warning on line 8 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L8
Check warning on line 12 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L12
Check warning on line 20 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L17-L20
Check warning on line 22 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L22
Check warning on line 28 in deepmd/pt/model/atomic_model/polar_atomic_model.py
Codecov / codecov/patch
deepmd/pt/model/atomic_model/polar_atomic_model.py#L28
Check warning on line 33 in deepmd/pt/model/model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/model/__init__.py#L33
Check warning on line 36 in deepmd/pt/model/model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/model/__init__.py#L36
Check warning on line 60 in deepmd/pt/model/model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/model/__init__.py#L60
Check warning on line 179 in deepmd/pt/model/model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/model/__init__.py#L172-L179
Check warning on line 181 in deepmd/pt/model/model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/model/__init__.py#L181
Check warning on line 183 in deepmd/pt/model/model/__init__.py
Codecov / codecov/patch
deepmd/pt/model/model/__init__.py#L183
Check warning on line 9 in deepmd/pt/model/model/dipole_model.py
Codecov / codecov/patch
deepmd/pt/model/model/dipole_model.py#L9
Check warning on line 12 in deepmd/pt/model/model/dipole_model.py
Codecov / codecov/patch
deepmd/pt/model/model/dipole_model.py#L12
Check warning on line 19 in deepmd/pt/model/model/dipole_model.py
Codecov / codecov/patch
deepmd/pt/model/model/dipole_model.py#L19
Check warning on line 23 in deepmd/pt/model/model/dipole_model.py
Codecov / codecov/patch
deepmd/pt/model/model/dipole_model.py#L23
Check warning on line 27 in deepmd/pt/model/model/dipole_model.py
Codecov / codecov/patch
deepmd/pt/model/model/dipole_model.py#L26-L27
Check warning on line 36 in deepmd/pt/model/model/dipole_model.py
Codecov / codecov/patch
deepmd/pt/model/model/dipole_model.py#L35-L36