Skip to content

Commit adc1987

Browse files
committed
Rename backend file
1 parent 4e19d00 commit adc1987

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ INSTALL=install
1111

1212
TS_OBJ = redisai.o tensor.o graph.o
1313

14-
INCLUDE_FLAGS=-I $(DEPS_PATH)/redis/src \
15-
-I . \
16-
-I backends \
14+
INCLUDE_FLAGS=-I . \
15+
-I $(DEPS_PATH)/redis/src \
1716
-I $(DEPS_PATH)/dlpack/include \
1817

1918
ifeq ($(shell uname),Linux)
@@ -27,7 +26,7 @@ else
2726
endif
2827

2928
# Tensorflow backend
30-
TS_OBJ += backends/tensorflow_backend.o
29+
TS_OBJ += backends/tensorflow.o
3130
FINAL_LDFLAGS += -ltensorflow
3231
INCLUDE_FLAGS += -I $(DEPS_PATH)/libtensorflow/include
3332
LDPATH_FLAGS += -L $(DEPS_PATH)/libtensorflow/lib
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "tensorflow_backend.h"
1+
#include "backends/tensorflow.h"
22
#include "tensor.h"
33
#include "utils/arr_rm_alloc.h"
44

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef SRC_TENSORFLOW_BACKEND_H_
2-
#define SRC_TENSORFLOW_BACKEND_H_
1+
#ifndef SRC_BACKENDS_TENSORFLOW_H_
2+
#define SRC_BACKENDS_TENSORFLOW_H_
33

44
#include "config.h"
55
#include "tensor_struct.h"
@@ -18,4 +18,4 @@ void RAI_GraphFreeTF(RAI_Graph* graph);
1818

1919
int RAI_GraphRunTF(RAI_GraphRunCtx* gctx);
2020

21-
#endif /* SRC_TENSORFLOW_BACKEND_H_ */
21+
#endif /* SRC_BACKENDS_TENSORFLOW_H_ */

src/graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "graph_struct.h"
33

44
#ifdef RAI_TENSORFLOW_BACKEND
5-
#include "backends/tensorflow_backend.h"
5+
#include "backends/tensorflow.h"
66
#endif /* RAI_TENSORFLOW_BACKEND */
77

88
#include "utils/arr_rm_alloc.h"

0 commit comments

Comments
 (0)