zoukankan      html  css  js  c++  java
  • 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!' >>>
  • 相关阅读:
    用户管理
    网线制作与分类
    5.虚函数,覆盖,多态,异常处理
    4.类的继承
    3.运算符重载
    7.STL
    6.泛型编程与模板
    C++中>>,<<的重载问题
    2.名字空间和构造函数
    1.C和C++的区别
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/7878634.html
Copyright © 2011-2022 走看看