Skip to content

Commit

Permalink
Moving src/generic/*.c to src/generic/c/*.c
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanky committed Jun 7, 2017
1 parent 27300b8 commit 218ebbf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/generic/StepGRU.c → src/generic/c/StepGRU.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/StepGRU.c"
#define TH_GENERIC_FILE "generic/c/StepGRU.c"
#else

static int nn_(StepGRU_updateOutput)(lua_State *L) {
Expand Down
2 changes: 1 addition & 1 deletion src/generic/StepLSTM.c → src/generic/c/StepLSTM.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/StepLSTM.c"
#define TH_GENERIC_FILE "generic/c/StepLSTM.c"
#else

static int nn_(StepLSTM_updateOutput)(lua_State *L) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/VariableLength.c"
#define TH_GENERIC_FILE "generic/c/VariableLength.c"
#else

static int nn_(from_samples_to_structured)(lua_State *L) {
Expand Down
6 changes: 3 additions & 3 deletions src/rnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
#define torch_Tensor TH_CONCAT_STRING_3(torch., Real, Tensor)
#define nn_(NAME) TH_CONCAT_3(nn_, Real, NAME)

#include "generic/VariableLength.c"
#include "generic/c/VariableLength.c"
#include "THGenerateFloatTypes.h"

#include "generic/StepLSTM.c"
#include "generic/c/StepLSTM.c"
#include "THGenerateFloatTypes.h"

#include "generic/StepGRU.c"
#include "generic/c/StepGRU.c"
#include "THGenerateFloatTypes.h"

DLL_EXPORT int luaopen_librnn(lua_State *L)
Expand Down

0 comments on commit 218ebbf

Please sign in to comment.