查詢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