Skip to content

Commit

Permalink
Enable XNNPACK in CMake builds (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
phlash authored May 20, 2021
1 parent 8538e16 commit 30618f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ project(deepbacksub CXX)

find_package(OpenCV REQUIRED COMPONENTS core imgproc imgcodecs video videoio highgui)

# force compilation of XNNPACK delegate (without this the too clever-by-half use
# of weak/strong symbol linking fails in a static library)
add_compile_definitions(TFLITE_BUILD_WITH_XNNPACK_DELEGATE)

# This assumes that tensorflow got checked out as submodule.
# True, if `git clone` had the additional option `--recursive`.
add_subdirectory(tensorflow/tensorflow/lite
Expand Down

0 comments on commit 30618f1

Please sign in to comment.