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:
authorMichael 'myrhev' Mathieu <michael.mathieu@ens.fr>2012-03-24 06:17:20 +0400
committerMichael 'myrhev' Mathieu <michael.mathieu@ens.fr>2012-03-24 06:17:20 +0400
commitdb5715c6030574da048d1f710c49fddb86f3de05 (patch)
tree33a86b21f15212f9e8909291db5b9990191be020 /init.c
parent12ba058c41397436cd3c80c14f7375cb77e81cbb (diff)
Add SpatialDownSampling module, a simple down-sampling averaging the pixels
Diffstat (limited to 'init.c')
-rw-r--r--init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.c b/init.c
index efc5081..2b5afcc 100644
--- a/init.c
+++ b/init.c
@@ -21,6 +21,9 @@ static const void* torch_DoubleTensor_id = NULL;
#include "generic/SpatialUpSampling.c"
#include "THGenerateFloatTypes.h"
+#include "generic/SpatialDownSampling.c"
+#include "THGenerateFloatTypes.h"
+
#include "generic/SpatialReSampling.c"
#include "THGenerateFloatTypes.h"
@@ -64,6 +67,7 @@ DLL_EXPORT int luaopen_libnnx(lua_State *L)
nn_FloatAbs_init(L);
nn_FloatThreshold_init(L);
nn_FloatSpatialUpSampling_init(L);
+ nn_FloatSpatialDownSampling_init(L);
nn_FloatSpatialReSampling_init(L);
nn_FloatSpatialMaxSampling_init(L);
nn_FloatDistMarginCriterion_init(L);
@@ -80,6 +84,7 @@ DLL_EXPORT int luaopen_libnnx(lua_State *L)
nn_DoubleAbs_init(L);
nn_DoubleThreshold_init(L);
nn_DoubleSpatialUpSampling_init(L);
+ nn_DoubleSpatialDownSampling_init(L);
nn_DoubleSpatialReSampling_init(L);
nn_DoubleSpatialMaxSampling_init(L);
nn_DoubleDistMarginCriterion_init(L);