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-scatter
Commits
05ecd667
"examples/vscode:/vscode.git/clone" did not exist on "fee93c81eb7c5e9fe1618f858f1e369567170edc"
Commit
05ecd667
authored
Dec 19, 2017
by
rusty1s
Browse files
empty functions
parent
573443b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
torch_scatter/src/cuda.c
torch_scatter/src/cuda.c
+9
-0
torch_scatter/src/generic/cuda.c
torch_scatter/src/generic/cuda.c
+23
-0
No files found.
torch_scatter/src/cuda.c
View file @
05ecd667
#include <THC/THC.h>
#define scatter_(NAME) TH_CONCAT_4(scatter_, NAME, _cuda_, Real)
#define index_backward TH_CONCAT_2(index_backward_cuda_, Real)
extern
THCState
*
state
;
#include "generic/cuda.c"
#include "THCGenerateAllTypes.h"
torch_scatter/src/generic/cuda.c
View file @
05ecd667
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/cuda.c"
#else
void
scatter_
(
mul
)(
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
)
{
}
void
scatter_
(
div
)(
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
)
{
}
void
scatter_
(
mean
)(
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
,
THCTensor
*
num_output
)
{
}
void
scatter_
(
max
)(
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
,
THCudaLongTensor
*
arg_output
)
{
}
void
scatter_
(
min
)(
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
,
THCudaLongTensor
*
arg_output
)
{
}
void
index_backward
(
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
grad
,
THCudaLongTensor
*
arg_grad
)
{
}
#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