Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-cluster
Commits
cf4aebef
Commit
cf4aebef
authored
Jan 24, 2019
by
rusty1s
Browse files
max_num_neighbors only for cuda tensors
parent
d83cfe9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torch_cluster/radius.py
torch_cluster/radius.py
+2
-1
No files found.
torch_cluster/radius.py
View file @
cf4aebef
...
@@ -22,7 +22,8 @@ def radius(x, y, r, batch_x=None, batch_y=None, max_num_neighbors=32):
...
@@ -22,7 +22,8 @@ def radius(x, y, r, batch_x=None, batch_y=None, max_num_neighbors=32):
:math:`\mathbf{b} \in {\{ 0, \ldots, B-1\}}^M`, which assigns each
:math:`\mathbf{b} \in {\{ 0, \ldots, B-1\}}^M`, which assigns each
node to a specific example. (default: :obj:`None`)
node to a specific example. (default: :obj:`None`)
max_num_neighbors (int, optional): The maximum number of neighbors to
max_num_neighbors (int, optional): The maximum number of neighbors to
return for each element in :obj:`y`. (default: :obj:`32`)
return for each element in :obj:`y`.
This flag is only needed for CUDA tensors. (default: :obj:`32`)
:rtype: :class:`LongTensor`
:rtype: :class:`LongTensor`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment