This command generates the following shared library in the current directory. If you want to build TensorFlow Lite shared library forįollowing commands. Target_link_libraries(minimal tensorflow-lite) cmake -DCMAKE_TOOLCHAIN_FILE=$/tensorflow-lite" EXCLUDE_FROM_ALL) DTFLITE_KERNEL_TEST=on flag mentioned above. The native flatc binary needs to be provided along with the DTFLITE_HOST_TOOLS_DIR= pointing to the directory containing tensorflow_src/tensorflow/lite/tools/cmake/native_tools/flatbuffersįor the TF Lite cross-compilation itself, additional parameter to a directory containing other natively-built tools instead of the CMakeīuild directory): cmake -DCMAKE_INSTALL_PREFIX=. It is also possible to install the flatc to a custom installation location tensorflow_src/tensorflow/lite/tools/cmake/native_tools/flatbuffers mkdir flatc-native-build
0 Comments
Leave a Reply. |