Skip to content

Commit 2dd7869

Browse files
committed
update dp backend
1 parent aad66f9 commit 2dd7869

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

deepmd/dpmodel/descriptor/repflows.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,11 +834,12 @@ def optim_angle_update(
834834
)
835835

836836
result_update = (
837-
sub_angle_update
837+
bias
838838
+ sub_node_update[:, :, xp.newaxis, xp.newaxis, :]
839839
+ sub_edge_update_ij[:, :, xp.newaxis, :, :]
840840
+ sub_edge_update_ik[:, :, :, xp.newaxis, :]
841-
) + bias
841+
+ sub_angle_update
842+
)
842843
return result_update
843844

844845
def optim_edge_update(
@@ -882,8 +883,11 @@ def optim_edge_update(
882883
)
883884

884885
result_update = (
885-
sub_edge_update + sub_node_ext_update + sub_node_update[:, :, xp.newaxis, :]
886-
) + bias
886+
bias
887+
+ sub_node_update[:, :, xp.newaxis, :]
888+
+ sub_edge_update
889+
+ sub_node_ext_update
890+
)
887891
return result_update
888892

889893
def call(

0 commit comments

Comments
 (0)