Skip to content

Commit

Permalink
fix jit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Mar 23, 2020
1 parent 6a8502c commit aff91e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_cluster/radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@torch.jit.script
def sample(col: torch.Tensor, count: int) -> torch.Tensor:
if col.size(0) > count:
col = col[torch.randperm(col.size(0))][:count]
col = col[torch.randperm(col.size(0), dtype=torch.long)][:count]
return col


Expand Down

0 comments on commit aff91e0

Please sign in to comment.