title: Cannot feed value of shape (500,) for Tensor 'x_17:0', which has shape '(?, 500)'
body: <p>I'm just learning TensorFlow, so sorry if this is obvious. I've checked the documentation and experimented quite a bit and I just can't seem to get this to work.</p>
  
  <pre><code>def train_network():
      OUT_DIMS = 1
      FIN_SIZE = 500
      x = tf.placeholder(tf.float32, [OUT_DIMS, FIN_SIZE], name="x")
      w = tf.Variable(tf.zeros([FIN_SIZE, OUT_DIMS]), name="w")
      b = tf.Variable(tf.zeros([OUT_DIMS]), name="b")
      y = tf.tanh(tf.matmul(x, w) + b)
  
      yhat = tf.placeholder(tf.float32, [None, OUT_DIMS])
      cross_entropy = -tf.reduce_sum(yhat*tf.log(y))
  
      train_step = tf.train.GradientDescentOptimizer(0.01).minimize(cross_entropy)
  
      # Launch the model
      init = tf.initialize_all_variables()
      sess = tf.Session()
      sess.run(init)
  
      for this_x, this_y in yield_financials():
          sess.run(train_step, feed_dict={x:    this_x,
                                          yhat: this_y})
          print(end=".")
          sys.stdout.flush()
  </code></pre>
  
  <p>yield_financials() outputs an numpy array of 500 numbers and the number that I want it to guess. I've tried shuffling OUT_DIMS and FIN_SIZE around, I tried accumulating them into batches to more closely match what the tutorial looked like, I tried setting OUT_DIMS to 0, removing it entirely, and I tried replacing None with other numbers, but have not made any progress.</p>