Skip to content

Commit

Permalink
fix bug of coord from extended_coord
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Sep 25, 2023
1 parent 9445700 commit ec2a61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd_pt/model/model/ener.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def forward_lower(
model_predict['dforce'] = dforce
# denoise
else:
coord = extended_coord[:nloc]
coord = extended_coord[:, :nloc]
nlist_list = list(torch.split(nlist, self.descriptor.split_sel, -1))
if not isinstance(self.rcut, list):
nnei_mask = nlist != -1
Expand Down

0 comments on commit ec2a61f

Please sign in to comment.