Commit aff91e0e authored by rusty1s's avatar rusty1s
Browse files

fix jit bug

parent 6a8502cb
......@@ -7,7 +7,7 @@ import scipy.spatial
@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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment