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/ppm.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 /ppm.c
parentee00dfc4f233fe18ffe53a3755a554a310322a1b (diff)
Changed API (torch)
Diffstat (limited to 'ppm.c')
-rw-r--r--ppm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ppm.c b/ppm.c
index 0eed413..91019f9 100644
--- a/ppm.c
+++ b/ppm.c
@@ -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);