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
c8338385
Commit
c8338385
authored
May 01, 2018
by
rusty1s
Browse files
no so files
parent
f568f19a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
.gitignore
.gitignore
+1
-0
aten/cpu/cluster.cpp
aten/cpu/cluster.cpp
+9
-0
aten/cpu/graclus.cpp
aten/cpu/graclus.cpp
+0
-4
aten/cpu/grid.cpp
aten/cpu/grid.cpp
+0
-2
No files found.
.gitignore
View file @
c8338385
...
@@ -6,3 +6,4 @@ dist/
...
@@ -6,3 +6,4 @@ dist/
.eggs/
.eggs/
*.egg-info/
*.egg-info/
.coverage
.coverage
*.so
aten/cpu/cluster.cpp
0 → 100644
View file @
c8338385
#include <torch/torch.h>
#include "graclus.cpp"
#include "grid.cpp"
PYBIND11_MODULE
(
TORCH_EXTENSION_NAME
,
m
)
{
m
.
def
(
"graclus"
,
&
graclus
,
"Graclus (CPU)"
);
m
.
def
(
"grid"
,
&
grid
,
"Grid (CPU)"
);
}
aten/cpu/graclus.cpp
View file @
c8338385
...
@@ -65,7 +65,3 @@ at::Tensor graclus(at::Tensor row, at::Tensor col, int num_nodes) {
...
@@ -65,7 +65,3 @@ at::Tensor graclus(at::Tensor row, at::Tensor col, int num_nodes) {
return
cluster
;
return
cluster
;
}
}
PYBIND11_MODULE
(
TORCH_EXTENSION_NAME
,
m
)
{
m
.
def
(
"graclus"
,
&
graclus
,
"Graclus (CPU)"
);
}
aten/cpu/grid.cpp
View file @
c8338385
...
@@ -19,5 +19,3 @@ at::Tensor grid(at::Tensor pos, at::Tensor size, at::Tensor start,
...
@@ -19,5 +19,3 @@ at::Tensor grid(at::Tensor pos, at::Tensor size, at::Tensor start,
return
cluster
;
return
cluster
;
}
}
PYBIND11_MODULE
(
TORCH_EXTENSION_NAME
,
m
)
{
m
.
def
(
"grid"
,
&
grid
,
"Grid (CPU)"
);
}
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