We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8502c commit aff91e0Copy full SHA for aff91e0
torch_cluster/radius.py
@@ -7,7 +7,7 @@
7
@torch.jit.script
8
def sample(col: torch.Tensor, count: int) -> torch.Tensor:
9
if col.size(0) > count:
10
- col = col[torch.randperm(col.size(0))][:count]
+ col = col[torch.randperm(col.size(0), dtype=torch.long)][:count]
11
return col
12
13
0 commit comments