We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43e0288 commit ad23558Copy full SHA for ad23558
1 file changed
deepmd/pt/model/descriptor/repflow_layer.py
@@ -455,10 +455,10 @@ def optim_edge_update(
455
456
# nf * nloc * node/edge_dim
457
sub_node_update = torch.matmul(node_ebd, node)
458
- # nf * nall * node/edge_dim
459
- sub_node_ext_update = torch.matmul(node_ebd_ext, node_ext)
460
# nf * nloc * nnei * node/edge_dim
461
- sub_node_ext_update = _make_nei_g1(sub_node_ext_update, nlist)
+ gathered_node_ebd_ext = _make_nei_g1(node_ebd_ext, nlist)
+ # nf * nloc * nnei * node/edge_dim
+ sub_node_ext_update = torch.matmul(gathered_node_ebd_ext, node_ext)
462
463
sub_edge_update = torch.matmul(edge_ebd, edge)
464
0 commit comments