Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-07-08 08:43:27 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-07-08 08:43:27 +0400
commit3adbcafc2d64524ad57431102bcb1e082cc450be (patch)
tree3b3703ad2bb90c113899865839e2a849094fd0e7 /init.c
parent6ec50929b2964ae9423feb0f5434b0f9dfdce610 (diff)
added two generic upsamplers/resamplers modules
Diffstat (limited to 'init.c')
-rw-r--r--init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.c b/init.c
index 1fdf687..50c5482 100644
--- a/init.c
+++ b/init.c
@@ -27,6 +27,12 @@ static const void* torch_DoubleTensor_id = NULL;
#include "generic/SpatialLogSoftMax.c"
#include "THGenerateFloatTypes.h"
+#include "generic/SpatialUpSampling.c"
+#include "THGenerateFloatTypes.h"
+
+#include "generic/SpatialReSampling.c"
+#include "THGenerateFloatTypes.h"
+
#include "generic/Threshold.c"
#include "THGenerateFloatTypes.h"
@@ -42,6 +48,8 @@ DLL_EXPORT int luaopen_libnnx(lua_State *L)
nn_FloatSpatialConvolutionTable_init(L);
nn_FloatSpatialLogSoftMax_init(L);
nn_FloatSpatialMaxPooling_init(L);
+ nn_FloatSpatialUpSampling_init(L);
+ nn_FloatSpatialReSampling_init(L);
nn_DoubleSpatialLinear_init(L);
nn_DoubleHardShrink_init(L);
@@ -50,6 +58,8 @@ DLL_EXPORT int luaopen_libnnx(lua_State *L)
nn_DoubleSpatialConvolutionTable_init(L);
nn_DoubleSpatialLogSoftMax_init(L);
nn_DoubleSpatialMaxPooling_init(L);
+ nn_DoubleSpatialUpSampling_init(L);
+ nn_DoubleSpatialReSampling_init(L);
return 1;
}