【发布时间】:2016-09-03 12:52:48
【问题描述】:
当我运行这段代码时:
x = tf.placeholder(tf.int32, shape=(None, 3))
with tf.Session() as sess:
feed_dict = dict()
feed_dict[x] = np.array([[1,2,3],[4,5,6],[7,8,9],[10,11,12]])
input = sess.run([x], feed_dict=feed_dict)
我得到这个错误:
Placeholder_2:0 is both fed and fetched.
我不确定我在这里做错了什么。为什么这不起作用?
【问题讨论】:
标签: machine-learning tensorflow