TensorFlow写helloworld

2019-03-17  本文已影响0人  宁静消失何如

用tensorflow打印输出语句

# _*_ coding: UTF-8 _*_

import tensorflow as tf

hw = tf.constant("hello world i love tensorflow !")
sess = tf.Session()
print(sess.run(hw))
sess.close()
                 

效果如下:


输出效果
上一篇 下一篇

猜你喜欢

热点阅读