diff options
author | Michael 'myrhev' Mathieu <michael.mathieu@ens.fr> | 2012-03-24 06:17:20 +0400 |
---|---|---|
committer | Michael 'myrhev' Mathieu <michael.mathieu@ens.fr> | 2012-03-24 06:17:20 +0400 |
commit | db5715c6030574da048d1f710c49fddb86f3de05 (patch) | |
tree | 33a86b21f15212f9e8909291db5b9990191be020 /init.c | |
parent | 12ba058c41397436cd3c80c14f7375cb77e81cbb (diff) |
Add SpatialDownSampling module, a simple down-sampling averaging the pixels
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |