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 /jpeg.c | |
parent | ee00dfc4f233fe18ffe53a3755a554a310322a1b (diff) |
Changed API (torch)
Diffstat (limited to 'jpeg.c')
-rw-r--r-- | jpeg.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -5,20 +5,14 @@ #include <setjmp.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 libjpeg_(NAME) TH_CONCAT_3(libjpeg_, Real, NAME) -static const void* torch_FloatTensor_id = NULL; -static const void* torch_DoubleTensor_id = NULL; - #include "generic/jpeg.c" #include "THGenerateFloatTypes.h" DLL_EXPORT int luaopen_libjpeg(lua_State *L) { - torch_FloatTensor_id = luaT_checktypename2id(L, "torch.FloatTensor"); - torch_DoubleTensor_id = luaT_checktypename2id(L, "torch.DoubleTensor"); - libjpeg_FloatMain_init(L); libjpeg_DoubleMain_init(L); |