Skip to content

LCE_compute_engine #779

Answered by Tombana
christophezeinaty asked this question in Q&A
Jul 27, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello,
If you are using tensorflow-lite with cmake, then you probably have something like this:

add_subdirectory( <path_to_tensorflow_lite> "${CMAKE_CURRENT_BINARY_DIR}/tensorflow-lite" EXCLUDE_FROM_ALL )

...

target_link_libraries( <your_binary>  tensorflow-lite )

To use LCE's binary layers, do the following instead:

add_subdirectory( <path_to_larq_compute_engine> )

...

target_link_libraries( <your_binary>  larq-compute-engine )

(remove the old add_subdirectory for tensorflow-lite, that is done inside the larq-compute-engine cmake file).

Note that you have to update compute-engine to the latest main branch because I just merged a fix for this (#780).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@christophezeinaty
Comment options

@Tombana
Comment options

Answer selected by christophezeinaty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants