File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ set(USE_TFLITE OFF)
154
154
# /path/to/tensorflow: tensorflow root path when use tflite library
155
155
set (USE_TENSORFLOW_PATH none )
156
156
157
+ # Required for full builds with TFLite. Not needed for runtime with TFLite.
158
+ # /path/to/flatbuffers: flatbuffers root path when using tflite library
159
+ set (USE_FLATBUFFERS_PATH none )
160
+
157
161
# Possible values:
158
162
# - OFF: disable tflite support for edgetpu
159
163
# - /path/to/edgetpu: use specific path to edgetpu library
Original file line number Diff line number Diff line change 17
17
18
18
if (NOT USE_TFLITE STREQUAL "OFF" )
19
19
message (STATUS "Build with contrib.tflite" )
20
- if (USE_TENSORFLOW_PATH STREQUAL "none" )
20
+ if (USE_TENSORFLOW_PATH STREQUAL "none" )
21
21
set (USE_TENSORFLOW_PATH ${CMAKE_CURRENT_SOURCE_DIR} /tensorflow )
22
22
endif ()
23
23
@@ -40,5 +40,8 @@ if(NOT USE_TFLITE STREQUAL "OFF")
40
40
find_library (TFLITE_CONTRIB_LIB libtensorflow-lite.a ${USE_TFLITE} )
41
41
42
42
list (APPEND TVM_RUNTIME_LINKER_LIBS ${TFLITE_CONTRIB_LIB} )
43
- list (APPEND TVM_RUNTIME_LINKER_LIBS rt dl flatbuffers )
43
+
44
+ if (NOT USE_FLATBUFFERS_PATH STREQUAL "none" )
45
+ include_directories (${USE_FLATBUFFERS_PATH} /include )
46
+ endif ()
44
47
endif ()
You can’t perform that action at this time.
0 commit comments