Skip to content

Commit 9316cad

Browse files
authored
Merge pull request #548 from JoshuaMeyers/main
Minor bugfix to potentials
2 parents 832486d + e540548 commit 9316cad

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)