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

Feat: add model format for dpa1 #3211

Closed
wants to merge 7 commits into from

Add dp impl serialization test

a96cab0
Select commit
Loading
Failed to load commit list.
Closed

Feat: add model format for dpa1 #3211

Add dp impl serialization test
a96cab0
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Feb 1, 2024 in 4s

20 new alerts including 8 errors

New alerts in code changed by this pull request

  • 8 errors
  • 3 warnings
  • 9 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 322 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable nlist_mask is not used.

Check failure on line 390 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check failure on line 391 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check failure on line 394 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check failure on line 382 in deepmd/model_format/network.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check failure on line 383 in deepmd/model_format/network.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check failure on line 506 in deepmd/model_format/network.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check notice on line 188 in source/tests/pt/test_dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable rtol is not used.

Check notice on line 188 in source/tests/pt/test_dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable atol is not used.

Check notice on line 189 in source/tests/pt/test_dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable err_msg is not used.

Check notice on line 203 in source/tests/pt/test_dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable model is not used.

Check warning on line 473 in deepmd/model_format/network.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute w, which was previously defined in superclass
NativeLayer
.

Check warning on line 475 in deepmd/model_format/network.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute w, which was previously defined in superclass
NativeLayer
.

Check warning on line 476 in deepmd/model_format/network.py

See this annotation in the file changed.

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute b, which was previously defined in superclass
NativeLayer
.

Check notice on line 257 in deepmd/pt/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 393 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note

Variable attention_layers is not used.

Check notice on line 133 in source/tests/pt/test_dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable dd0_state_dict_attn is not used.

Check notice on line 134 in source/tests/pt/test_dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable dd4_state_dict_attn is not used.

Check failure on line 392 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.

Check failure on line 393 in deepmd/model_format/dpa1.py

See this annotation in the file changed.

Code scanning / CodeQL

Modification of parameter with default Error

This expression mutates a
default value
.