html模版TensorFlow 的Mac OS 下的部署和安裝
TensorFlow 於 2016.4.13 日發佈瞭帶有分佈式屬性的0.8版本, 其很有可能成為繼Mapreduce之後又一個改變互聯網格局的項目。這個周末一直在傢研究TensorFlow 相關的東西,並在Mac OS X下對其進行瞭部署和安裝。

其安裝方法非常簡單, 參考文檔如下Tensor Flow 安裝教程

$ sudo easy_install pip
$ sudo easy_install --upgrade six
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0rc0-py2-none-any.whl /a

安裝完成後,即可運行其測試用例

$ python
...
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
Hello, TensorFlow!
a = tf.constant(10)
b = tf.constant(32)
print(sess.run(a + b))
42

需要註意的是 在 Mac OS 下準備運行MNIST 時有一紅貴賓飼料推薦幼犬飼料推薦個關於numpy的報錯,

module compiled against API version 0xa but this version of numpy is 0x9
產生該錯誤的主要原因是由於numpy版本過老導致的,修復方法為通過homebrew安裝opencv即可

brew install python
brew tap homebrew/science
brew install opencv

本文永久更新鏈接地址:http://www.linuxidc.com/Linux/2016-07/133219.htm

在裝有Nvidia獨顯的臺式機上安裝Ubuntu 14.04 TLS

Ubuntu 15.04下TensorFlow源代碼方式安裝



紅貴賓飼料97758FE7E4F6E226
arrow
arrow

    amrqqewhm2 發表在 痞客邦 留言(0) 人氣()