September 06, 2019 Quack
Scripts to help build TensorFlow r1.14 for the NVIDIA Jetson AGX Xavier Developer Kit.
There is a convenience script for building a swap file. To build a 8GB swapfile on the eMMC in the home directory:
gcc -v
ls /usr/bin/gcc*
sudo apt install gcc-5 g++-5
./createSwapfile.sh -d ~/ -s 8
After TensorFlow has finished building, the swap file is no longer needed and may be removed.
build_bazel.sh
./py27_tf14_dep.sh
./cloneTF_Patch.sh
Please check log.txt
for details about setting up TensorFlow configs.
./configure
The official TensorFlow packages are built with GCC 4 and use the older ABI. For GCC 5 and later, make your build compatible with the older ABI using: --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0". ABI compatibility ensures that custom ops built against the official TensorFlow package continue to work with the GCC 5 built package.
./build_tf.sh
./package_tf.sh
pip install *.whl
TensorFlow C++ with ROS shared library
bazel build --config=opt --config=nonccl //tensorflow:libtensorflow_cc.so --verbose_failures --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1"