Created
December 5, 2016 01:53
-
-
Save mainyaa/367cd40d40801c1d8de507e07fa9bb2e to your computer and use it in GitHub Desktop.
Tensorflow r0.12 ios example batch for macOS Sierra
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
diff --git i/tensorflow/contrib/makefile/compile_ios_tensorflow.sh w/tensorflow/contrib/makefile/compile_ios_tensorflow.sh | |
index 61ab844..e2bcf5a 100755 | |
--- i/tensorflow/contrib/makefile/compile_ios_tensorflow.sh | |
+++ w/tensorflow/contrib/makefile/compile_ios_tensorflow.sh | |
@@ -72,19 +72,10 @@ then | |
exit 1 | |
fi | |
-make -f tensorflow/contrib/makefile/Makefile \ | |
-TARGET=IOS IOS_ARCH=X86_64 LIB_NAME=${LIB_PREFIX}-x86_64.a OPTFLAGS="$1" $2 $3 | |
-if [ $? -ne 0 ] | |
-then | |
- echo "x86_64 compilation failed." | |
- exit 1 | |
-fi | |
- | |
lipo \ | |
${LIBDIR}/ios_ARMV7/${LIB_PREFIX}-armv7.a \ | |
${LIBDIR}/ios_ARMV7S/${LIB_PREFIX}-armv7s.a \ | |
${LIBDIR}/ios_ARM64/${LIB_PREFIX}-arm64.a \ | |
${LIBDIR}/ios_I386/${LIB_PREFIX}-i386.a \ | |
-${LIBDIR}/ios_X86_64/${LIB_PREFIX}-x86_64.a \ | |
-create \ | |
-output ${LIBDIR}/${LIB_PREFIX}.a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment