Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/jpeg.c
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2012-09-13 00:01:11 +0400
committerClement Farabet <clement.farabet@gmail.com>2012-09-13 00:01:11 +0400
commit9451e9701b3811e5837499d993b7125226a50c27 (patch)
tree1f50a030f7879e47c321b16f3bba28a64f12ab8d /jpeg.c
parentee00dfc4f233fe18ffe53a3755a554a310322a1b (diff)
Changed API (torch)
Diffstat (limited to 'jpeg.c')
-rw-r--r--jpeg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/jpeg.c b/jpeg.c
index 0301794..b81c230 100644
--- a/jpeg.c
+++ b/jpeg.c
@@ -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);