Skip to content

Commit

Permalink
Fix incorrect type
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Mar 20, 2024
1 parent eeded26 commit 500a8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchmdnet/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def get_neighbor_pairs_fwd_meta(
) -> Tuple[Tensor, Tensor, Tensor, Tensor]:
"""Returns empty vectors with the correct shape for the output of get_neighbor_pairs_kernel."""
size = max_num_pairs
edge_index = torch.empty((2, size), dtype=torch.long, device=positions.device)
edge_index = torch.empty((2, size), dtype=torch.int, device=positions.device)
edge_distance = torch.empty((size,), dtype=positions.dtype, device=positions.device)
edge_vec = torch.empty((size, 3), dtype=positions.dtype, device=positions.device)
num_pairs = torch.empty((1,), dtype=torch.long, device=positions.device)
num_pairs = torch.empty((1,), dtype=torch.int, device=positions.device)
return edge_index, edge_vec, edge_distance, num_pairs


Expand Down

0 comments on commit 500a8e4

Please sign in to comment.