tf.print 没有结果

我想用来tf.print显示张量值,但是没有结果?


这是我的代码,有什么问题吗:


from __future__ import print_function

import tensorflow as tf


sess = tf.InteractiveSession()  

a = tf.constant([1.0, 3.0])

tf.print(a)


九州编程
浏览 319回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python