Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Oct 14, 2024
1 parent fabe092 commit 67f104b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deepmd/pt/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,15 @@ def eval_descriptor(
"""
model = self.dp.model["Default"]
model.set_eval_descriptor_hook(True)
self.eval(coords, cells, atom_types, fparam, aparam, **kwargs)
self.eval(
coords,
cells,
atom_types,
atomic=False,
fparam=fparam,
aparam=aparam,
**kwargs,
)
descriptor = model.eval_descriptor()
model.set_eval_descriptor_hook(False)
return to_numpy_array(descriptor)

0 comments on commit 67f104b

Please sign in to comment.