用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()
效果如下:
输出效果
用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()
效果如下:
本文标题:TensorFlow写helloworld
本文链接:https://www.haomeiwen.com/subject/cvkpmqtx.html
网友评论