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!' >>>
  • 相关阅读:
    IDEA 运行junit单元测试方法
    IDEA 修改编码
    接口文档word版
    java 上传文件到七牛云中
    单例模式
    洛谷P3092 [USACO13NOV]没有找零No Change
    Codevs 1159 最大全0子矩阵
    洛谷P2733 家的范围 Home on the Range
    洛谷P2280 [HNOI2003]激光炸弹
    洛谷P2023 [AHOI2009]维护序列
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/7878634.html
Copyright © 2011-2022 走看看