Skip to content

Commit 9cce429

Browse files
author
Daniel Zuegner
committed
ci: fix MPS scatter diagnostic
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3724d1c0-700a-4e62-956e-5249677cc756
1 parent 67e1dad commit 9cce429

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/forcefield/test_aoti_compile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,15 @@ def run_and_capture(model, input_dict):
280280
)
281281
three_basis = model.sbf(rik, torch.acos(cos_jik))
282282
interaction = model.graph_conv[0].three_body
283+
edge_length_column = edge_length.unsqueeze(-1)
283284
atom_mask = (
284285
interaction.atom_mlp(atom_attr)[edge_index[0][three_body_indices[:, 1]]]
285286
* polynomial(
286-
edge_length[three_body_indices[:, 0]],
287+
edge_length_column[three_body_indices[:, 0]],
287288
interaction.threebody_cutoff,
288289
)
289290
* polynomial(
290-
edge_length[three_body_indices[:, 1]],
291+
edge_length_column[three_body_indices[:, 1]],
291292
interaction.threebody_cutoff,
292293
)
293294
)

0 commit comments

Comments
 (0)