查询tensorflow的版本和安装路径
由于tensorflow版本不同,可能一些函数的调用也有变换,这时候可能需要查看tensorflow版本
在终端输入查询命令如下:
python
import tensorflow as tf
tf.__version__
查询tensorflow安装路径为:
tf.__path__
下载github上TensorFlow的模型库:
git clone 不指定分支
git clone http://10.1.1.11/service/tmall-service.git
git clone 指定分支
git clone -b dev_jk http://10.1.1.11/service/tmall-service.git
git clone -b dev_jk http://10.1.1.11/service/tmall-service.git
命令中:多了一个 -b dev-jk,这个dev_jk就是分支,http://10.1.1.11/service/tmall
本人使用如下代码克隆https://github.com/tensorflow/models网址下的代码,r1.5版本
git clone -b r1.5 https://github.com/tensorflow/models.git
参考链接:
https://blog.csdn.net/weixin_39800144/article/details/78205617
https://www.cnblogs.com/nylcy/p/6569284.html