美文网首页
tensorflow在mac上集成

tensorflow在mac上集成

作者: LJMagicCoder | 来源:发表于2019-01-18 09:14 被阅读0次

需要注意python的版本

 brew install python3    //使用homebrew安装python 

pip3 install tensorflow==1.2.0

或者 python3 pip install tensorflow==1.2.0

或者去git上拉取

需要安装freeze_graph 和optimize_for_inference 插件

先安装bazel    

bazel使用brew安装

然后将git上拉下来的tensorflow调用 configure 文件

设置python路径选/usr/local/bin/python3   其他选no

安装工具 (freeze_graph 和optimize_for_inference)

bazel build tensorflow/python/tools:freeze_graph 

bazel build tensorflow/python/tools:optimize_for_inference

查看版本

python3

import tensorflow as tf

tf __version__

相关文章

网友评论

      本文标题:tensorflow在mac上集成

      本文链接:https://www.haomeiwen.com/subject/ghugdqtx.html