【AI】Win10-Tensorflow

一、安装

第一步:先安装anaconda3
第二步:pip install --upgrade --ignore-installed tensorflow
或者:pip install tensorflow

二、测试

>>> 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))  
  

三、效果

 

备注:谢谢:http://www.cnblogs.com/zlslch/p/6964944.html

 

 
posted @ 2018-11-22 10:31  咸鱼翻身  阅读(165)  评论(0编辑  收藏  举报