Skip to content

Instantly share code, notes, and snippets.

compile_ios_tensorflow.sh "-Os"
make -f tensorflow/contrib/makefile/Makefile \
TARGET=IOS \
IOS_ARCH=ARM64
tensorflow/contrib/makefile/compile_ios_protobuf.sh
tensorflow/contrib/makefile/download_dependencies.sh
tensorflow/contrib/makefile/build_all_ios.sh
bazel build tensorflow/examples/android:tensorflow_demo
adb install -r \
bazel-bin/tensorflow/examples/android/tensorflow_demo.apk
bazel build -c opt //tensorflow/examples/android:tensorflow_demo
android_sdk_repository(
name = "androidsdk",
api_level = 23,
build_tools_version = "23.0.2",
path = "/home/petewarden/android-sdk-linux/",
)
android_ndk_repository(
name="androidndk",
path="/home/petewarden/android-ndk-r10e/",
api_level=19)
allprojects {
repositories {
jcenter()
}
}
dependencies {
compile 'org.tensorflow:tensorflow-android:+'
}
git clone https://github.com/tensorflow/tensorflow tensorflow
cd tensorflow
docker build -t "tf-pi" -f tensorflow/tools/ci_build/Dockerfile.cpu tensorflow/tools/ci_build/
docker run -it tf-pi
# Commands after this are run on the Docker instance.
dpkg --add-architecture armhf
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty-security main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list
echo 'deb [arch=armhf] http://ports.ubuntu.com/ trusty-backports main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list