Skip to content

Commit cf4aebe

Browse files
committed
max_num_neighbors only for cuda tensors
1 parent d83cfe9 commit cf4aebe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torch_cluster/radius.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def radius(x, y, r, batch_x=None, batch_y=None, max_num_neighbors=32):
2222
:math:`\mathbf{b} \in {\{ 0, \ldots, B-1\}}^M`, which assigns each
2323
node to a specific example. (default: :obj:`None`)
2424
max_num_neighbors (int, optional): The maximum number of neighbors to
25-
return for each element in :obj:`y`. (default: :obj:`32`)
25+
return for each element in :obj:`y`.
26+
This flag is only needed for CUDA tensors. (default: :obj:`32`)
2627
2728
:rtype: :class:`LongTensor`
2829

0 commit comments

Comments
 (0)