Skip to content

Commit

Permalink
Update repformer_layer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed May 9, 2024
1 parent a8c89dc commit e329e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/model/descriptor/repformer_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def _cal_hg(
invnnei = (1.0 / float(nnei)) * torch.ones(
(nb, nloc, 1, 1), dtype=g2.dtype, device=g2.device
)
# nb x nloc x 3 x ng
# nb x nloc x 3 x ng2
h2g2 = torch.matmul(torch.transpose(h2, -1, -2), g2) * invnnei
return h2g2

Expand Down

0 comments on commit e329e30

Please sign in to comment.