Skip to content

Commit

Permalink
fix: natom error in calc_model_devi (#3597)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzyphysics authored Mar 26, 2024
1 parent 98f69e0 commit 3c09d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/infer/model_devi.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def calc_model_devi(
energies = []
forces = []
virials = []
natom = atype.shape[-1]
natom = np.array(atype).shape[-1]
for dp in models:
ret = dp.eval(
coord,
Expand Down

0 comments on commit 3c09d46

Please sign in to comment.