Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
cf5c63b4
Unverified
Commit
cf5c63b4
authored
Apr 23, 2020
by
Michal Piszczek
Committed by
GitHub
Apr 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to specify flatbuffers location (#5425)
parent
6faacc6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
cmake/config.cmake
+4
-0
cmake/modules/contrib/TFLite.cmake
+5
-2
No files found.
cmake/config.cmake
View file @
cf5c63b4
...
...
@@ -154,6 +154,10 @@ set(USE_TFLITE OFF)
# /path/to/tensorflow: tensorflow root path when use tflite library
set
(
USE_TENSORFLOW_PATH none
)
# Required for full builds with TFLite. Not needed for runtime with TFLite.
# /path/to/flatbuffers: flatbuffers root path when using tflite library
set
(
USE_FLATBUFFERS_PATH none
)
# Possible values:
# - OFF: disable tflite support for edgetpu
# - /path/to/edgetpu: use specific path to edgetpu library
...
...
cmake/modules/contrib/TFLite.cmake
View file @
cf5c63b4
...
...
@@ -17,7 +17,7 @@
if
(
NOT USE_TFLITE STREQUAL
"OFF"
)
message
(
STATUS
"Build with contrib.tflite"
)
if
(
USE_TENSORFLOW_PATH STREQUAL
"none"
)
if
(
USE_TENSORFLOW_PATH STREQUAL
"none"
)
set
(
USE_TENSORFLOW_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/tensorflow
)
endif
()
...
...
@@ -40,5 +40,8 @@ if(NOT USE_TFLITE STREQUAL "OFF")
find_library
(
TFLITE_CONTRIB_LIB libtensorflow-lite.a
${
USE_TFLITE
}
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS
${
TFLITE_CONTRIB_LIB
}
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS rt dl flatbuffers
)
if
(
NOT USE_FLATBUFFERS_PATH STREQUAL
"none"
)
include_directories
(
${
USE_FLATBUFFERS_PATH
}
/include
)
endif
()
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment