美文网首页
TensorFlow写helloworld

TensorFlow写helloworld

作者: 宁静消失何如 | 来源:发表于2019-03-17 20:34 被阅读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()
                 

效果如下:


输出效果

相关文章

网友评论

      本文标题:TensorFlow写helloworld

      本文链接:https://www.haomeiwen.com/subject/cvkpmqtx.html