Skip to content

Instantly share code, notes, and snippets.

tensorflow/contrib/makefile/build_all_ios.sh
tensorflow/contrib/makefile/download_dependencies.sh
tensorflow/contrib/makefile/compile_ios_protobuf.sh
make -f tensorflow/contrib/makefile/Makefile \
TARGET=IOS \
IOS_ARCH=ARM64
compile_ios_tensorflow.sh "-Os"
mkdir -p ~/graphs
curl -o ~/graphs/inception5h.zip \
https://storage.googleapis.com/download.tensorflow.org/ \
models/inception5h.zip
unzip ~/graphs/inception5h.zip -d ~/graphs/inception5h
cp ~/graphs/inception5h/* \
tensorflow/examples/ios/benchmark/data/
cp ~/graphs/inception5h/* \
tensorflow/examples/ios/camera/data/
cp ~/graphs/inception5h/* \
tensorflow/contrib/makefile/download_dependencies.sh
sudo apt-get install -y \
autoconf automake libtool gcc-4.8 g++-4.8
cd tensorflow/contrib/makefile/downloads/protobuf/
./autogen.sh
./configure
make
sudo make install
sudo ldconfig # refresh shared library cache
cd ../../../../..
make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI \
TARGET=PI OPTFLAGS="-Os" CXX=g++-4.8
make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI \
TARGET=PI OPTFLAGS="-Os -mfpu=neon-vfpv4 \
-funsafe-math-optimizations -ftree-vectorize" CXX=g++-4.8
curl https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015_stripped.zip \
-o /tmp/inception_dec_2015_stripped.zip
unzip /tmp/inception_dec_2015_stripped.zip \
-d tensorflow/contrib/pi_examples/label_image/data/