Skip to content
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

pd: support dpa2 #4418

Merged
merged 81 commits into from
Dec 25, 2024

[pre-commit.ci] auto fixes from pre-commit.com hooks

ed80c6d
Select commit
Loading
Failed to load commit list.
Merged

pd: support dpa2 #4418

[pre-commit.ci] auto fixes from pre-commit.com hooks
ed80c6d
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Dec 2, 2024 in 2s

342 new alerts including 1 high severity security vulnerability

New alerts in code changed by this pull request

Security Alerts:

  • 1 high

Other Alerts:

  • 18 errors
  • 23 warnings
  • 300 notes

Alerts not introduced by this pull request might have been detected because the code changes were too large.

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 47 in deepmd/pd/infer/deep_eval.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused import Note

Import of 'ase' is not used.

Check notice on line 93 in deepmd/pd/model/atomic_model/base_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable ntypes is not used.

Check notice on line 529 in deepmd/pd/model/descriptor/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable env_mat is not used.

Check notice on line 600 in deepmd/pd/model/descriptor/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable nall is not used.

Check warning on line 663 in deepmd/pd/model/descriptor/dpa2.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'env_mat' is unnecessary as it is
redefined
before this value is used.
This assignment to 'env_mat' is unnecessary as it is
redefined
before this value is used.

Check warning on line 678 in deepmd/pd/model/descriptor/dpa2.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'env_mat' is unnecessary as it is
redefined
before this value is used.

Check notice on line 694 in deepmd/pd/model/descriptor/dpa2.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable env_mat is not used.

Check notice on line 967 in deepmd/pd/model/descriptor/repformer_layer.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable ng2 is not used.

Check notice on line 1277 in deepmd/pd/model/descriptor/repformer_layer.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable nitem is not used.

Check notice on line 416 in deepmd/pd/model/descriptor/repformers.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable ng1 is not used.

Check notice on line 50 in deepmd/pd/model/descriptor/se_a.py

See this annotation in the file changed.

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.

Check notice on line 323 in deepmd/pd/model/descriptor/se_a.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable env_mat is not used.

Check warning on line 655 in deepmd/pd/model/descriptor/se_a.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'ti' is unnecessary as it is
redefined
before this value is used.

Check notice on line 431 in deepmd/pd/model/descriptor/se_atten.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable nall is not used.

Check notice on line 386 in deepmd/pd/model/descriptor/se_t_tebd.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable env_mat is not used.

Check notice on line 451 in deepmd/pd/model/descriptor/se_t_tebd.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable nall is not used.

Check notice on line 770 in deepmd/pd/model/descriptor/se_t_tebd.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable nall is not used.

Check notice on line 328 in deepmd/pd/model/model/make_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

Check notice on line 153 in deepmd/pd/model/network/layernorm.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable prec is not used.

Check notice on line 234 in deepmd/pd/model/network/mlp.py

See this annotation in the file changed.

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

Check notice on line 281 in deepmd/pd/model/network/mlp.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable prec is not used.

Check warning on line 415 in deepmd/pd/train/training.py

See this annotation in the file changed.

Code scanning / CodeQL

Unreachable code Warning

This statement is unreachable.

Check warning on line 651 in deepmd/pd/train/training.py

See this annotation in the file changed.

Code scanning / CodeQL

File is not always closed Warning

File is opened but is not closed.

Check warning on line 657 in deepmd/pd/train/training.py

See this annotation in the file changed.

Code scanning / CodeQL

File is not always closed Warning

File is opened but is not closed.

Check notice on line 875 in deepmd/pd/train/training.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable module is not used.