Skip to content

Commit

Permalink
Cast neighbor pairs to long (expected by torch geometric)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed May 11, 2023
1 parent f15d6cc commit 47d256d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchmdnet/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def forward(
neighbors = neighbors[:, mask]
distances = distances[mask]
distance_vecs = distance_vecs[mask, :]
neighbors = neighbors.to(torch.long)
if self.return_vecs:
return neighbors, distances, distance_vecs
else:
Expand Down

0 comments on commit 47d256d

Please sign in to comment.