Skip to content

Commit

Permalink
Apply suggestions from code review
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 Oct 26, 2024
1 parent 2e3f3ad commit 09d0087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deepmd/jax/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DeepEval(DeepEvalBackend):
Parameters
----------
model_file : Path
model_file : str
The name of the frozen model file.
output_def : ModelOutputDef
The output definition of the model.
Expand Down Expand Up @@ -188,7 +188,7 @@ def eval(
cells
The cell of the region.
If None then non-PBC is assumed, otherwise using PBC.
The array should be of size nframes x 9
The array should be of size nframes x 3 x 3
atom_types
The atom types
The list should contain natoms ints
Expand Down Expand Up @@ -388,4 +388,4 @@ def _get_output_shape(self, odef, nframes, natoms):

def get_model_def_script(self) -> dict:
"""Get model definition script."""
return json.loads(self.model.get_model_def_script())
return json.loads(self.dp.get_model_def_script())

0 comments on commit 09d0087

Please sign in to comment.