title: ValueError: Shapes (16,) and (1, 16) are not compatible in tensorflow1.0
body: <p>When I run the following code in tensorflow</p>
  
  <pre><code>import tensorflow as tf
  import numpy as np
  
  x_input_data = np.random.random((1024,16))
  q = tf.train.input_producer(x_input_data, element_shape=[1,16])
  input = q.dequeue() # It replaces our input placeholder
  print (x_input_data.shape)
  print (input.get_shape())
  
  sess = tf.Session()
  sess.run(tf.global_variables_initializer())
  coord = tf.train.Coordinator()
  threads = tf.train.start_queue_runners(sess=sess, coord=coord)
  example_batch = tf.train.batch([input], batch_size=1024, num_threads=4, capacity=40, enqueue_many=True)
  for step in range(1000):
      sess.run(example_batch)
  coord.request_stop()
  coord.join(threads)
  sess.close()
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>ValueError: Shapes (16,) and (1, 16) are not compatible
  </code></pre>
  
  <p>Why I get this error?</p>