Ubuntu install TensorFlow

/********************************************************************************
 *                      Ubuntu install TensorFlow
 * 说明:
 *     TensorFlow Lite好像不久就会发布,尝试一下TensorFlow安装。
 *
 *                                              2017-11-22 深圳 龙华樟坑村 曾剑锋
 *******************************************************************************/

一、参考文档:
    1. 在 Ubuntu 上安装 TensorFlow
        https://efeiefei.gitbooks.io/tensorflow_documents_zh/install/install_linux.html
2. Tensorflow教程
https://morvanzhou.github.io/tutorials/machine-learning/tensorflow/
二、Install: 1. sudo apt-get install python3-pip python3-dev 2. pip3 install tensorflow 三、测试: zengjf@zengjf:~/zengjf/zengjfos/freeopcua$ python3 Python 3.5.2+ (default, Sep 22 2016, 12:18:14) [GCC 6.2.0 20160927] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf >>> hello = tf.constant('Hello, TensorFlow!') >>> sess = tf.Session() 2017-11-22 12:10:18.932106: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA >>> print(sess.run(hello)) b'Hello, TensorFlow!' >>>

 

posted on 2017-11-22 12:50  zengjf  阅读(497)  评论(0编辑  收藏  举报

导航