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-spline-conv
Commits
7203c6ca
Commit
7203c6ca
authored
Dec 27, 2017
by
rusty1s
Browse files
boilerplate
parent
988e3595
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
torch_spline_conv/src/cpu.c
torch_spline_conv/src/cpu.c
+8
-0
torch_spline_conv/src/cpu.h
torch_spline_conv/src/cpu.h
+8
-0
torch_spline_conv/src/generic/cpu.c
torch_spline_conv/src/generic/cpu.c
+14
-0
No files found.
torch_spline_conv/src/cpu.c
View file @
7203c6ca
#include <TH/TH.h>
#define spline_(NAME) TH_CONCAT_4(spline_, NAME, _, Real)
#include "generic/cpu.c"
#include "THGenerateFloatType.h"
#include "generic/cpu.c"
#include "THGenerateDoubleType.h"
torch_spline_conv/src/cpu.h
View file @
7203c6ca
void
spline_linear_Float
(
THFloatTensor
*
amount
,
THLongTensor
*
index
,
THFloatTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
);
void
spline_linear_Double
(
THDoubleTensor
*
amount
,
THLongTensor
*
index
,
THDoubleTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
);
void
spline_quadratic_Float
(
THFloatTensor
*
amount
,
THLongTensor
*
index
,
THFloatTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
);
void
spline_quadratic_Double
(
THDoubleTensor
*
amount
,
THLongTensor
*
index
,
THDoubleTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
);
void
spline_cubic_Float
(
THFloatTensor
*
amount
,
THLongTensor
*
index
,
THFloatTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
);
void
spline_cubic_Double
(
THDoubleTensor
*
amount
,
THLongTensor
*
index
,
THDoubleTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
);
torch_spline_conv/src/generic/cpu.c
View file @
7203c6ca
#ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/cpu.c"
#else
void
spline_
(
linear
)(
THFloatTensor
*
amount
,
THLongTensor
*
index
,
THFloatTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
)
{
}
void
spline_
(
quadratic
)(
THFloatTensor
*
amount
,
THLongTensor
*
index
,
THFloatTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
)
{
}
void
spline_
(
cubic
)(
THFloatTensor
*
amount
,
THLongTensor
*
index
,
THFloatTensor
*
input
,
THLongTensor
*
kernel
,
THByteTensor
*
open
)
{
}
#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