Skip to content

Commit

Permalink
Update deepmd/dpmodel/descriptor/repformers.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz and coderabbitai[bot] authored Nov 1, 2024
1 parent abbbb54 commit 8989b8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deepmd/dpmodel/descriptor/repformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,14 +516,13 @@ def serialize(self):
# variables
"g2_embd": self.g2_embd.serialize(),
"repformer_layers": [layer.serialize() for layer in self.layers],
"env_mat": EnvMat(self.rcut, self.rcut_smth).serialize(),
"env_mat": self.env_mat.serialize(),
"@variables": {
"davg": to_numpy_array(self["davg"]),
"dstd": to_numpy_array(self["dstd"]),
},
}


# translated by GPT and modified
def get_residual(
_dim: int,
Expand Down

0 comments on commit 8989b8a

Please sign in to comment.