Skip to content

Commit cb04aec

Browse files
committed
Merge branch 'main' of github.com:jwohlwend/boltz
2 parents 6fed419 + 9316cad commit cb04aec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/boltz/model/potentials/potentials.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ def compute_gradient(self, coords, feats, parameters):
174174
index.flatten(start_dim=0, end_dim=1)
175175
.unsqueeze(-1)
176176
.expand((*coords.shape[:-2], -1, 3)),
177-
dSoftmax.tile(grad_value.shape[-3]).unsqueeze(-1)
178-
* grad_value.flatten(start_dim=-3, end_dim=-2),
177+
prod,
179178
"sum",
180179
)
181180
else:

0 commit comments

Comments
 (0)