I try to connect to the tensor stream, configure the network and then feed data to it. For some reason, I am ending the error message ValueError: setting an array element with a sequence. I made a minimal example of what I'm trying to do:
import tensorflow as tf
K = 10
lchild = tf.placeholder(tf.float32, shape=(K))
rchild = tf.placeholder(tf.float32, shape=(K))
parent = tf.nn.tanh(tf.add(lchild, rchild))
input = [ tf.Variable(tf.random_normal([K])),
tf.Variable(tf.random_normal([K])) ]
with tf.Session() as sess :
print(sess.run([parent], feed_dict={ lchild: input[0], rchild: input[1] }))
Basically, I set up a network with place owners and an input attachment sequence that I want to learn, and then I try to start the network by supplying input attachments to it. From what I can tell by searching for the error message, there may be something wrong with mine feed_dict, but I do not see any obvious inconsistencies, for example. Dimension.
So what did I miss, or how did I get this all the way back?
EDIT: , , , . , : ?