![]() Java is a registered trademark of Oracle and/or its affiliates. For details, see the Google Developers Site Policies. Note: You need necessary headers (c_api.h, c_api_experimental.h andĬommon.h) to use the generated shared library.Įxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. 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. |