Skip to content

Commit c38528e

Browse files
Update docstring
1 parent 9e9cb6f commit c38528e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cuda/include/cuda_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <vector>
1212

13-
#define TOTAL_THREADS 1024
13+
#define TOTAL_THREADS 512
1414

1515
inline int opt_n_threads(int work_size) {
1616
const int pow_2 = std::log(static_cast<double>(work_size)) / std::log(2.0);

torch_points/torchpoints.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,14 @@ def ball_query(radius: float, nsample: int, x: torch.Tensor, y: torch.Tensor, mo
299299
mode {str} -- switch between "dense" or "partial_dense" data layout
300300
301301
Keyword Arguments:
302-
batch_x {Optional[torch.tensor]} -- (M, ) Contains indexes to indicate within batch it belongs to.
303-
batch_y {Optional[torch.tensor]} -- (N, ) Contains indexes to indicate within batch it belongs to
302+
batch_x -- (M, ) Contains indexes to indicate within batch it belongs to.
303+
batch_y -- (N, ) Contains indexes to indicate within batch it belongs to
304304
305305
306306
Returns:
307-
[type] -- [description]
307+
idx: (npoint, nsample) or (B, npoint, nsample) [dense] It contains the indexes of the element within x at radius distance to y
308+
OPTIONAL[partial_dense] dist2: (N, nsample) Default value: -1.
309+
It contains the square distances of the element within x at radius distance to y
308310
"""
309311
if mode is None:
310312
raise Exception('The mode should be defined within ["partial_dense | dense"]')

0 commit comments

Comments
 (0)