TensorFlow:深度学习框架TensorFlow TensorFlow_GPU的简介、安装、测试之详细攻略
TensorFlow:深度學習框架TensorFlow & TensorFlow_GPU的簡介、安裝、測試之詳細攻略
目錄
TensorFlow的簡介
TensorFlow的安裝
1、tensorflow的安裝
20190514更新
20190514-1851更新
20200529更新后成功
20210809更新
2、tensorflow-gpu的安裝
20180928-2128 更新
20181010更新
相關文章
TF學習——DL框架之Tensorflow:Tensorflow的簡介、安裝、使用方法之詳細攻略
TensorFlow的簡介
? ? ? TensorFlow 是一種采用數據流圖(data flow graphs),用于數值計算的開源軟件庫。其中 Tensor 代表傳遞的數據為張量(多維數組),Flow 代表使用計算圖進行運算。數據流圖用「結點」(nodes)和「邊」(edges)組成的有向圖來描述數學運算。「結點」一般用來表示施加的數學操作,但也可以表示數據輸入的起點和輸出的終點,或者是讀取/寫入持久變量(persistent variable)的終點。邊表示結點之間的輸入/輸出關系。這些數據邊可以傳送維度可動態調整的多維數據數組,即張量(tensor)。
TensorFlow的安裝
1、tensorflow的安裝
tensorflow可以直接命令行式直接安裝,但是如果需要運行深度學習的時候,切記需要搭配cuda和cudnn!
tensorflow:tensorflow · PyPI
20190514更新
pip install --upgrade tensorflow
更新后的結果
20190514-1851更新
pip install tensorflow==1.10.0 pip install --user tensorflow==1.10.0 ? ?#出即錯誤,即采用絕對權限下載20200529更新后成功
pip install tensorflow==1.10.0 pip install --user tensorflow==1.10.0 ? ?#出即錯誤,即采用絕對權限下載pip install --user tensorflow==2.6.0 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.6.020210809更新
先重新安裝的Anaconda,再安裝的tensorflow!
2、tensorflow_gpu的安裝
tensorflow-gpu:tensorflow-gpu · PyPI
pip install?tensorflow-gpu pip install tensorflow-gpu==1.4.0pip install --upgrade tensorflow-gpu pip3 install --upgrade tensorflow-gpu pip install -U tensorflow-gpupip install --upgrade tensorflow-gpu
20180928-2128 更新
因為'tensorflow.python.keras' has no attribute 'Model'的原因升級tensorflow
卸載tensorflow-1.8.0升級到tensorflow-1.11.0
Win+R運行命令窗口,然后cmd進入dos環境,輸入命令
pip install?tensorflow-gpu pip3 install --upgrade tensorflow-gpu20181010更新
因為采用TF的GPU加速原因進行升級TensorFlow_GPU=1.11.0
pip install -U tensorflow-gpu
安裝請參考:Py之TF/Cuda/Cudnn:Win10下安裝深度學習框架Tensorflow+Cuda+Cudnn最簡單最快捷最詳細攻略
總結
以上是生活随笔為你收集整理的TensorFlow:深度学习框架TensorFlow TensorFlow_GPU的简介、安装、测试之详细攻略的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TF学习:Tensorflow基础案例、
- 下一篇: DL框架之MXNet :深度学习框架之M