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
6aad98c2
Commit
6aad98c2
authored
Feb 05, 2018
by
rusty1s
Browse files
bugfix
parent
e95d789b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
torch_cluster/functions/grid.py
torch_cluster/functions/grid.py
+2
-1
torch_cluster/kernel/generic/kernel.cu
torch_cluster/kernel/generic/kernel.cu
+1
-0
torch_cluster/kernel/kernel.cu
torch_cluster/kernel/kernel.cu
+1
-1
torch_cluster/src/generic/cuda.c
torch_cluster/src/generic/cuda.c
+1
-1
No files found.
torch_cluster/functions/grid.py
View file @
6aad98c2
...
...
@@ -43,6 +43,7 @@ def grid_cluster(position, size, batch=None):
func
=
get_func
(
'grid'
,
position
)
func
(
C
,
cluster
,
position
,
size
,
c_max
)
cluster
=
cluster
.
squeeze
(
dim
=-
1
)
cluster
=
consecutive
(
cluster
)
if
not
cluster
.
is_cuda
:
cluster
=
consecutive
(
cluster
)
return
cluster
torch_cluster/kernel/generic/kernel.cu
View file @
6aad98c2
...
...
@@ -3,6 +3,7 @@
#else
void
cluster_
(
grid
)(
THCState
*
state
,
int
C
,
THCudaLongTensor
*
output
,
THCTensor
*
position
,
THCTensor
*
size
,
THCudaLongTensor
*
count
)
{
printf
(
"drin"
);
}
#endif
torch_cluster/kernel/kernel.cu
View file @
6aad98c2
...
...
@@ -2,7 +2,7 @@
#include "kernel.h"
#define cluster_(NAME) TH_CONCAT_4(cluster, NAME, _kernel_, Real)
#define cluster_(NAME) TH_CONCAT_4(cluster
_
, NAME, _kernel_, Real)
#include "generic/kernel.cu"
#include "THCGenerateAllTypes.h"
torch_cluster/src/generic/cuda.c
View file @
6aad98c2
...
...
@@ -3,7 +3,7 @@
#else
void
cluster_
(
grid
)(
int
C
,
THCudaLongTensor
*
output
,
THCTensor
*
position
,
THCTensor
*
size
,
THCudaLongTensor
*
count
)
{
/* return
cluster_kernel_(grid)(state, C, output, position, size, count);
*/
cluster_kernel_
(
grid
)(
state
,
C
,
output
,
position
,
size
,
count
);
}
#endif
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