Skip to content

Commit 62eed49

Browse files
committed
'typo'
1 parent de90ce4 commit 62eed49

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/test_ballquerry_partial.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import numpy.testing as npt
66
import numpy as np
77

8-
98
class TestBallPartial(unittest.TestCase):
109
def test_simple_gpu(self):
1110
x = torch.tensor([[10, 0, 0], [0.1, 0, 0], [10, 0, 0], [0.1, 0, 0]]).to(torch.float).cuda()
@@ -27,7 +26,5 @@ def test_simple_gpu(self):
2726
npt.assert_array_almost_equal(idx, idx_answer)
2827
npt.assert_array_almost_equal(dist2, dist2_answer)
2928

30-
31-
3229
if __name__ == "__main__":
3330
unittest.main()

torch_points/torchpoints.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,15 @@ def ball_query_partial_dense(radius, nsample, x, y, batch_x, batch_y):
319319
y : torch.Tensor
320320
(N, npoint, 3) centers of the ball query
321321
batch_x : torch.Tensor
322-
(M, ) Contains indexes to indicate within batch it belongs to
322+
(M, ) Contains indexes to indicate within batch it belongs to.
323323
batch_y : torch.Tensor
324324
(N, ) Contains indexes to indicate within batch it belongs to
325325
326326
Returns
327327
-------
328328
torch.Tensor
329-
(B, npoint, nsample) tensor with the indicies of the features that form the query balls
329+
idx: (M, nsample) Default value: N. It contains the indexes of the element within y at radius distance to x
330+
dist2: (M, nsample) Default value: -1. It contains the square distances of the element within y at radius distance to x
330331
"""
331332
return BallQueryPartialDense.apply(radius, nsample, x, y, batch_x, batch_y)
332333

0 commit comments

Comments
 (0)