diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2012-09-13 00:01:11 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2012-09-13 00:01:11 +0400 |
commit | 9451e9701b3811e5837499d993b7125226a50c27 (patch) | |
tree | 1f50a030f7879e47c321b16f3bba28a64f12ab8d /ppm.c | |
parent | ee00dfc4f233fe18ffe53a3755a554a310322a1b (diff) |
Changed API (torch)
Diffstat (limited to 'ppm.c')
-rw-r--r-- | ppm.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -3,20 +3,14 @@ #include <luaT.h> #define torch_(NAME) TH_CONCAT_3(torch_, Real, NAME) -#define torch_string_(NAME) TH_CONCAT_STRING_3(torch., Real, NAME) +#define torch_Tensor TH_CONCAT_STRING_3(torch., Real, Tensor) #define libppm_(NAME) TH_CONCAT_3(libppm_, Real, NAME) -static const void* torch_FloatTensor_id = NULL; -static const void* torch_DoubleTensor_id = NULL; - #include "generic/ppm.c" #include "THGenerateFloatTypes.h" DLL_EXPORT int luaopen_libppm(lua_State *L) { - torch_FloatTensor_id = luaT_checktypename2id(L, "torch.FloatTensor"); - torch_DoubleTensor_id = luaT_checktypename2id(L, "torch.DoubleTensor"); - libppm_FloatMain_init(L); libppm_DoubleMain_init(L); |