title: Reading CSV files with TensorFlow
body: <p>I'm trying to read a tensor from a CSV file and print it. I followed the advice <a href="https://stackoverflow.com/questions/35772292/tensorflow-reading-a-csv-file-hangs-forever">here</a>, but the script still hangs. data.csv consists of one line:</p>
  
  <pre><code>1.5,2.5
  </code></pre>
  
  <p>Here's the code that reads it:</p>
  
  <pre><code>datafile = tf.train.string_input_producer([os.path.join(os.getcwd(), "data.csv")])
  reader = tf.TextLineReader()
  _, value = reader.read(datafile)
  record_defaults = [[1], [1]]
  col1, col2 = tf.decode_csv(value, record_defaults=record_defaults)
  result = tf.stack([col1, col2])
  config = tf.ConfigProto(inter_op_parallelism_threads=2)
  with tf.Session() as sess:
      print(sess.run(result))
  </code></pre>
  
  <p>Any thoughts?</p>