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:hydra model #2

Open
wants to merge 6 commits into
base: devel
Choose a base branch
from
Open

feat:hydra model #2

wants to merge 6 commits into from

Conversation

anyangml
Copy link
Owner

No description provided.

):
super().__init__(type_map, **kwargs)
ntypes = len(type_map)
self.type_map = type_map

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute type_map, which was previously defined in superclass
BaseAtomicModel
.
deepmd/pt/model/descriptor/hydra_dpa2.py Fixed Show fixed Hide fixed

# deserialize repinit
statistic_repinit = repinit_variable.pop("@variables")
env_mat = repinit_variable.pop("env_mat")

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

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

# deserialize repformers
statistic_repformers = repformers_variable.pop("@variables")
env_mat = repformers_variable.pop("env_mat")

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable env_mat is not used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant