Skip to content

Commit fe09b86

Browse files
Fix bug
1 parent d64e307 commit fe09b86

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

torch_points_kernels/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
from .torchpoints import *
22
from .knn import knn
3+
from .cluster import region_grow
34

4-
__all__ = ["ball_query", "furthest_point_sample", "grouping_operation", "three_interpolate", "three_nn", "knn"]
5+
__all__ = [
6+
"ball_query",
7+
"furthest_point_sample",
8+
"grouping_operation",
9+
"three_interpolate",
10+
"three_nn",
11+
"knn",
12+
"region_grow",
13+
]

torch_points_kernels/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def region_grow(
9797
if len(label_clusters):
9898
remaped_clusters = []
9999
for cluster in label_clusters:
100-
cluster = cluster.to(pos.device)
100+
cluster = torch.tensor(cluster).to(pos.device)
101101
remaped_clusters.append(local_ind[cluster])
102102
clusters[l.item()] = remaped_clusters
103103

torch_points_kernels/torchpoints.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import torch_points_kernels.points_cpu as tpcpu
88
from .knn import knn
9-
from .cluster import region_grow
109

1110
if torch.cuda.is_available():
1211
import torch_points_kernels.points_cuda as tpcuda

0 commit comments

Comments
 (0)