博客专栏

EEPW首页 > 博客 > 第一个tensorflow程序hello

第一个tensorflow程序hello

发布人:hawkdtw 时间:2018-02-12 来源:工程师 发布文章

在ubuntu 16.04 64-bit上安装TensorFlow完毕后,运行一个程序检查是否安装正确

(tensorflow)xxx@yyy:~$python

>>>import tensorflow as tf

>>>hello = tf.constant('hello, TensorFlow')
>>>sess = tf.Session()

>>>print(sess.run(hello))
hello, TensorFlow


如果运行后,显示结果如上,则表示安装正确。

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。



关键词:

相关推荐

技术专区

关闭