Check out this guide. Create Tensorflow on Odroid
IT provides a detailed step-by-step guide and also contains some troubleshooting procedures.
Summarizing the steps here:
- , g++, gcc-4.8, python-pip, python-dev, numpy Oracle Java ( OpenJDK).
- USB/- .
- Bazel. compile.sh script ,
run "${JAVAC}" -J-Xms256m -J-Xmx384m -classpath "${classpath}" -sourcepath "${sourcepath}"
- Tensorflow v1.4
./configure
. XLA, . - , Bazel.
bazel build -c opt --copt="-funsafe-math-optimizations" --copt="-ftree-vectorize" --copt="-fomit-frame-pointer" --local_resources 8192,8.0,1.0 --verbose_failures tensorflow/tools/pip_package:build_pip_package
- .
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
sudo pip2 install /tmp/tensorflow_pkg/tensorflow-1.4.0-cp27-cp27mu-linux_armv7l.whl --upgrade --ignore-installed
python
import tensorflow
print(tensorflow.__version__)
1.4.0
, .