TensorFlow笔记:Session.run()与Tensor.eval()
在TensorFlow中Session.run()与Tensor.eval()都可以用来执行.如果你有一个Tensor t,在使用t.eval()时,等价于:tf.get_default_session().run(t). 如下面两段代码是相同的:# Using `Session.run()`.sess = tf.Session()c = tf.constant(5.0)print
原创
2018-01-27 14:31:21 ·
1518 阅读 ·
0 评论