Skip to content

Commit aff91e0

Browse files
committed
fix jit bug
1 parent 6a8502c commit aff91e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_cluster/radius.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@torch.jit.script
88
def sample(col: torch.Tensor, count: int) -> torch.Tensor:
99
if col.size(0) > count:
10-
col = col[torch.randperm(col.size(0))][:count]
10+
col = col[torch.randperm(col.size(0), dtype=torch.long)][:count]
1111
return col
1212

1313

0 commit comments

Comments
 (0)