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-sparse
Commits
a1021ebd
Commit
a1021ebd
authored
Oct 19, 2020
by
rusty1s
Browse files
fix
parent
2bcc13ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
csrc/sparse.h
csrc/sparse.h
+1
-0
No files found.
CMakeLists.txt
View file @
a1021ebd
...
@@ -15,7 +15,7 @@ endif()
...
@@ -15,7 +15,7 @@ endif()
find_package
(
Python3 COMPONENTS Development
)
find_package
(
Python3 COMPONENTS Development
)
find_package
(
Torch REQUIRED
)
find_package
(
Torch REQUIRED
)
#
file(GLOB HEADERS csrc/sparse.h)
file
(
GLOB HEADERS csrc/sparse.h
)
file
(
GLOB OPERATOR_SOURCES csrc/cpu/*.h csrc/cpu/*.cpp csrc/*.cpp
)
file
(
GLOB OPERATOR_SOURCES csrc/cpu/*.h csrc/cpu/*.cpp csrc/*.cpp
)
if
(
WITH_CUDA
)
if
(
WITH_CUDA
)
file
(
GLOB OPERATOR_SOURCES
${
OPERATOR_SOURCES
}
csrc/cuda/*.h csrc/cuda/*.cu
)
file
(
GLOB OPERATOR_SOURCES
${
OPERATOR_SOURCES
}
csrc/cuda/*.h csrc/cuda/*.cu
)
...
...
csrc/sparse.h
View file @
a1021ebd
...
@@ -21,6 +21,7 @@ std::tuple<torch::Tensor, torch::Tensor, torch::Tensor>
...
@@ -21,6 +21,7 @@ std::tuple<torch::Tensor, torch::Tensor, torch::Tensor>
subgraph
(
torch
::
Tensor
idx
,
torch
::
Tensor
rowptr
,
torch
::
Tensor
row
,
subgraph
(
torch
::
Tensor
idx
,
torch
::
Tensor
rowptr
,
torch
::
Tensor
row
,
torch
::
Tensor
col
);
torch
::
Tensor
col
);
std
::
tuple
<
torch
::
Tensor
,
torch
::
Tensor
,
torch
::
Tensor
,
torch
::
Tensor
>
sample_adj
(
torch
::
Tensor
rowptr
,
torch
::
Tensor
col
,
torch
::
Tensor
rowcount
,
sample_adj
(
torch
::
Tensor
rowptr
,
torch
::
Tensor
col
,
torch
::
Tensor
rowcount
,
torch
::
Tensor
idx
,
int64_t
num_neighbors
,
bool
replace
);
torch
::
Tensor
idx
,
int64_t
num_neighbors
,
bool
replace
);
...
...
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