diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2011-07-06 05:47:15 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2011-07-06 05:47:15 +0400 |
commit | a83d9b521ff77a1c559c74e1673772f97163dbd0 (patch) | |
tree | 40e769123f73a9cbe74e0fd219020e28e892c0fd /init.c | |
parent | 951ed4fd0b11aeb95c6d3958704cfb10d25e0bef (diff) |
Added Threshold.
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |