-
-
Save shion1118/03c2ad587b1b83a6adfc48c8976b440e to your computer and use it in GitHub Desktop.
Copy tensorflow headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
HEADER_DIR=/usr/local/include/tensorflow/ | |
if [ ! -e $HEADER_DIR ]; | |
then | |
mkdir -p $HEADER_DIR | |
fi | |
find tensorflow/core -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
find tensorflow/cc -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
find tensorflow/c -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
find third_party/eigen3 -follow -type f -exec cp --parents {} $HEADER_DIR \; | |
pushd bazel-genfiles | |
find tensorflow -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
popd | |
pushd bazel-tensorflow/external/protobuf_archive/src | |
find google -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
popd | |
pushd bazel-tensorflow/external/eigen_archive | |
find Eigen -follow -type f -exec cp --parents {} $HEADER_DIR \; | |
find unsupported -follow -type f -exec cp --parents {} $HEADER_DIR \; | |
popd | |
# ./tensorflow/contrib/makefile/download_dependencies.sh | |
pushd tensorflow/contrib/makefile/downloads/absl/ | |
find absl -follow -type f -name "*.h" -exec cp --parents {} $HEADER_DIR \; | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment