Darwin尚未支持Tensorflow的MKL构建/配置

时间:2017-08-29 12:28:14

标签: ios macos tensorflow darwin

我正在尝试在iOS应用中使用tensorflow-1.3.0。我正在尝试此链接 - [http://jeffxtang.github.io/deep/learning,/tensorflow,/mobile,/ai/2016/09/23/mobile-tensorflow.html][1]

我正在尝试本教程的第4步,我需要运行./configure脚本才能运行bazel build来运行重新训练脚本:

bazel build tensorflow/examples/image_retraining:retrain
bazel-bin/tensorflow/examples/image_retraining/retrain \
  --model_dir=/tf_files/inception-v3 \
  --output_graph=/tf_files/retrained_models/dog_retrained.pb \
  --output_labels=/tf_files/retrained_models/dog_retrained_labels.txt \
  --image_dir ~/Downloads/dog_images \
  --bottleneck_dir=/tf_files/dogs_bottleneck

但是./configure步骤失败并显示以下消息:

MobioApps-Mac-mini:tensorflow-1.3.0 mobioapp$ ./configure
You have bazel 0.5.3-homebrew installed.
Please specify the location of python. [Default is /Users/mobioapp/anaconda/bin/python]: /Users/mobioapp/anaconda/bin/python
Found possible Python library paths:
  /Users/mobioapp/anaconda/lib/python2.7/site-packages
Please input the desired Python library path to use.  Default is [/Users/mobioapp/anaconda/lib/python2.7/site-packages]
/Users/mobioapp/anaconda/lib/python2.7/site-packages
Do you wish to build TensorFlow with MKL support? [y/N] y
MKL support will be enabled for TensorFlow
Do you wish to download MKL LIB from the web? [Y/n] Y
Darwin is unsupported yet

问题:Darwin尚未得到支持

这个问题的解决方案是什么?请帮帮我。我正在寻找它。

1 个答案:

答案 0 :(得分:0)

要解决此问题,请跳过此链接http://jeffxtang.github.io/deep/learning,/tensorflow,/mobile,/ai/2016/09/23/mobile-tensorflow.html中的第4步。我只是分别从教程中执行步骤1,2,3和5.这解决了我的问题,最后我能够自己运行训练有素的模型进入我的iOS应用程序并获得成功的预测结果。