【数据平台】Centos下仅CPU安装TensorFlow
生活随笔
收集整理的這篇文章主要介紹了
【数据平台】Centos下仅CPU安装TensorFlow
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1、安裝命令:
# Ubuntu/Linux 64-bit, CPU only, Python 2.7: $ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
2、簡易測(cè)試:
$ 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 >>>《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀
總結(jié)
以上是生活随笔為你收集整理的【数据平台】Centos下仅CPU安装TensorFlow的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【正一专栏】谁能阻止超神的曼城
- 下一篇: 【正一专栏】曼彻斯特德比落幕——曼城独孤