feed_dict tf 报错提示ValueError: setting an array element with a sequence.

print (sess.run(output,feed_dict={input1:[[1.0,2.0,3.0]],input2:[[2.0],[3.0],[4.0]]}))就能运行.

错误原因:
feed_dict格式本身不能用tf.constant赋值的或者tf.get_variable赋值。

猜你喜欢

转载自blog.csdn.net/th_num/article/details/79978741