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-06 05:47:15 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-07-06 05:47:15 +0400
commita83d9b521ff77a1c559c74e1673772f97163dbd0 (patch)
tree40e769123f73a9cbe74e0fd219020e28e892c0fd /init.c
parent951ed4fd0b11aeb95c6d3958704cfb10d25e0bef (diff)
Added Threshold.
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 c02baab..e57a46e 100644
--- a/init.c
+++ b/init.c
@@ -17,6 +17,9 @@ static const void* torch_DoubleTensor_id = NULL;
#include "generic/SpatialLinear.c"
#include "THGenerateFloatTypes.h"
+#include "generic/Threshold.c"
+#include "THGenerateFloatTypes.h"
+
DLL_EXPORT int luaopen_libnnx(lua_State *L)
{
torch_FloatTensor_id = luaT_checktypename2id(L, "torch.FloatTensor");
@@ -25,10 +28,12 @@ DLL_EXPORT int luaopen_libnnx(lua_State *L)
nn_FloatSpatialLinear_init(L);
nn_FloatHardShrink_init(L);
nn_FloatAbs_init(L);
+ nn_FloatThreshold_init(L);
nn_DoubleSpatialLinear_init(L);
nn_DoubleHardShrink_init(L);
nn_DoubleAbs_init(L);
+ nn_DoubleThreshold_init(L);
return 1;
}