Skip to content

Commit facc695

Browse files
committed
Bugfix
1 parent 4b0b02a commit facc695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dect/fect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def bincount(idx, resolution):
3636
def fast_ect(x, v):
3737
"""Fast ECT for point clouds."""
3838
resolution = v.shape[1]
39-
nh = ((torch.matmul(x, v) + 1) * (resolution // 2)).to(torch.uint16)
40-
return bincount(nh, resolution)
39+
nh = ((torch.matmul(x, v) + 1) * (resolution // 2)).to(torch.uint32)
40+
return bincount(nh, resolution), nh
4141

4242

4343
def fast_ect_edges(x, ei, v):

0 commit comments

Comments
 (0)